promzard 4.0.0 and earlier allows code injection (CVE-2026-127109)
CERT/CC says unsanitized context-object keys reach vm.runInThisContext, and no maintainer patch is available.
Code injection in promzard via context property names
promzard inserts context-object property names into a generated function parameter list without validation, then evaluates that source with vm.runInThisContext(). An attacker who can set those property names can break out of the parameter list and run arbitrary JavaScript with the Node.js process privileges, even when the template file is trusted. Applications that pass attacker-controlled keys into the context object are affected. No affected version range is published.
What to do: No fixed version is stated for CVE-2026-127109.
| Product | Affected |
|---|---|
| promzard | — |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
A code injection vulnerability in promzard’s template-loading functionality allows an attacker who can control property names in the context object (ctx) to execute arbitrary code with the privileges of the Node.js process. The library inserts context property names into a generated function’s parameter list without validation or escaping and evaluates the resulting source using `vm.runInThisContext()`. A crafted property name can escape the parameter list and inject JavaScript code, even when the template file is fully trusted.
CERT/CC says unsanitized context-object keys reach vm.runInThisContext, and no maintainer patch is available.
Today 635 readers · 706 views · 99 reads · all time 219K views