ID:12683 - Exploit for Code Injection in handlebars.js - CVE-2026-33937

 
Main Vulnerability Database Exploits ID:12683 - Exploit for Code Injection in handlebars.js - CVE-2026-33937

ID:12683 - Exploit for Code Injection in handlebars.js - CVE-2026-33937

Published: April 30, 2026


Vulnerability identifier: #VU124842
Vulnerability risk: High
CVE-ID: CVE-2026-33937
CWE-ID: CWE-94
Exploitation vector: Remote access
Vulnerable software:
handlebars.js

Link to public exploit:


Vulnerability description

The vulnerability allows a remote attacker to execute arbitrary code.

The vulnerability exists due to improper control of code generation in Handlebars.compile() and the JavaScript code generator when processing a crafted pre-parsed AST object. A remote attacker can supply a crafted AST with a malicious NumberLiteral value to execute arbitrary code.

The issue affects cases where user-controlled JSON or other untrusted input is deserialized and passed directly to compile() as an AST object instead of a template string, and no user interaction is required.


Remediation

Install security update from vendor's website.