Início
Início
Tendências
Tendências
Vulnerabilidades
Vulnerabilidades
Notícias
Notícias
Pesquisadores
Pesquisadores
Por que dbugs?
Por que dbugs?
Configurações

Realhurrison

#26378de 60,596
10CVSS total
Vulnerabilidades · 1
PT-2026-28569
2026-03-26
10
CVE-2026-33937
Unknown
Handlebars
Handlebars allows Remote Code Execution (RCE) through a crafted Abstract Syntax Tree (AST) object. The `Handlebars.compile()` function accepts either a template string or a pre-parsed AST. When an AST is supplied, the `value` field of a `NumberLiteral` AST node is emitted directly into the generated JavaScript without proper sanitization. This allows an attacker who can supply a crafted AST to `compile()` to inject and execute arbitrary JavaScript code on the server. The vulnerable code path resides in `lib/handlebars/compiler/javascript-compiler.js`, where `NumberLiteral` values are appended to the generated code without escaping. Any endpoint that deserializes user-controlled JSON and passes the result directly to `Handlebars.compile()` is potentially exploitable. An attacker can leverage this to execute commands on the server, as demonstrated by a proof of concept that uses `process.getBuiltinModule('child process').execFileSync('id')` to execute the 'id' command.