search menu icon-carat-right cmu-wordmark

CERT Coordination Center

PromZard context key code injection leads to remote code execution

Vulnerability Note VU#685399

Original Release Date: 2026-11-12 | Last Revised: 2026-11-12

Overview

The npm library promzard, versions 4.0.0 and earlier, is vulnerable to remote code execution due to direct string interpolation of context object keys, which allows unsanitized JavaScript code injection.

Description

promzard is a Node.js library designed to automate configuration workflows by evaluating template modules and generating data objects via interactive prompting. The library allows users to provide a context object ctx to expose specific data to the template module.

promzard builds an object by walking the template module for prompt() and asynchronous functions. The keys of ctx, however, are treated as raw JavaScript source code instead of inert data. The implementation performs direct string interpolation of ctx keys, without validation or sanitization, into the parameter list of a function-expression source string that is then evaluated with vm.runInThisContext(). A key containing attacker-controlled JavaScript syntax can be executed during evaluation.

Impact

An attacker capable of influencing the ctx object’s keys (e.g. via parsed configuration file, an HTTP request, or environment variables) can break out of the function parameter list and inject arbitrary JavaScript code. This results in remote code execution within the context of the Node.js process.

Solution

Unfortunately, the maintainers of promzard could not be reached to coordinate the vulnerability. The CERT/CC recommends users ensure that any data used to populate ctx is strictly validated, and that arbitrary keys should not be passed from untrusted sources.

Acknowledgements

Thanks to Abdullah Hamdan for reporting this vulnerability. This document was written by Alex Lewis.

Vendor Information

685399
 

Promzard Unknown

Notified:  2026-10-13 Updated: 2026-11-12

CVE-2026-127109 Unknown

Vendor Statement

We have not received a statement from the vendor.


Other Information

CVE IDs: CVE-2026-127109
API URL: VINCE JSON | CSAF
Date Public: 2026-11-12
Date First Published: 2026-11-12
Date Last Updated: 2026-11-12 15:09 UTC
Document Revision: 1

Sponsored by CISA.