CVE-2026-127109
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.
Am I affected?
Sign in and add the software you use to your watchlist: we check it against every new vulnerability.
Show me how to fix itTimeline
- First covered by RedTeamDaily
- Published by NVD
- Last updated by NVD
Coverage
promzard npm library flaw allows remote code execution via ctx keys (CVE-2026-127109)
The promzard npm library, versions 4.0.0 and earlier, inserts the keys of its ctx object directly into JavaScript source code without sanitising them, then evaluates that code with vm.runInThisContext(). An attacker who can influence those keys, for example through a configuration file, an HTTP request or environment variables, can execute arbitrary code in the Node.js process. The maintainers could not be reached, so there is no vendor fix.
Sources: NVD and CISA known exploited vulnerabilities catalogue.