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.
References
Configurations
No configuration.
History
16 Nov 2026, 17:17
| Type | Values Removed | Values Added |
|---|---|---|
| CWE | CWE-94 | |
| CVSS |
v2 : v3 : |
v2 : unknown
v3 : 8.1 |
12 Nov 2026, 17:17
| Type | Values Removed | Values Added |
|---|---|---|
| References |
|
12 Nov 2026, 16:19
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-11-12 16:19
Updated : 2026-11-16 17:17
NVD link : CVE-2026-127109
Mitre link : CVE-2026-127109
CVE.ORG link : CVE-2026-127109
JSON object : View
Products Affected
No product.
CWE
CWE-94
Improper Control of Generation of Code ('Code Injection')
