CVE-2026-127109 Details
Description
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.
A code injection vulnerability has been identified in the npm library Promzard, specifically in versions 4.0.0 and earlier. This vulnerability allows an attacker to execute arbitrary code with the privileges of the Node.js process. The issue arises from the library's template-loading functionality, which directly interpolates context object keys into a generated function's parameter list without proper validation or escaping. The evaluated source can include injected JavaScript code, even if the template file is considered trusted. An attacker who can control the property names in the context object can exploit this vulnerability, leading to remote code execution.
Users are advised to validate any data used to populate the context object and avoid passing arbitrary keys from untrusted sources.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Nov 12, 2026CISA-ADP
Assessed Nov 16, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://www.kb.cert.org/vuls/id/685399 | CVE | AdvisoryRemedy |
| https://github.com/npm/promzard | [email protected] | ProductSource CodeVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| npm promzard | <= 4.0.0 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 16, 2026 | CVE Modified | CISA-ADP |
| Nov 12, 2026 | CVE Modified | CVE |
| Nov 12, 2026 | New CVE Received | [email protected] |
Volerion