{
  "schema_version": "1.6.7",
  "id": "PRECVE-2026-6CE934BD",
  "modified": "2026-11-12T15:09:39Z",
  "published": "2026-11-12T15:09:39Z",
  "summary": "The npm library promzard versions 4.0.0 and earlier is vulnerable to remote code execution due to unsafe string interpolation of context object keys allowing injection of arbitrary JavaScript code.",
  "details": "promzard evaluates template modules by interpolating keys from a context object directly into a function parameter list without sanitization. This allows attacker-controlled keys containing JavaScript syntax to execute arbitrary code via vm.runInThisContext(), leading to remote code execution within the Node.js process.",
  "aliases": [
    "CVE-2026-127109",
    "VU#685399"
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "promzard",
        "purl": "pkg:npm/promzard"
      },
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "4.0.0"
            }
          ]
        }
      ],
      "database_specific": {
        "zerobom": {
          "evidence_quotes": [
            "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.",
            "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.",
            "An attacker capable of influencing the ctx object\u2019s 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."
          ],
          "grounding_status": "verified",
          "registry_status": "exists",
          "routing": "auto",
          "aliases": [
            "CVE-2026-127109"
          ]
        }
      }
    }
  ],
  "references": [
    {
      "type": "ARTICLE",
      "url": "https://kb.cert.org/vuls/id/685399"
    },
    {
      "type": "WEB",
      "url": "https://kb.cert.org/vuls/id/685399"
    }
  ],
  "database_specific": {
    "zerobom": {
      "source_tier": "tier_1",
      "source_tier_weight": 1.0,
      "extraction_specificity": 1.0,
      "composite_score": 1.0,
      "routing": "auto",
      "severity": "CRITICAL",
      "cwe_ids": [],
      "evidence_quotes": [
        "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.",
        "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.",
        "An attacker capable of influencing the ctx object\u2019s 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."
      ],
      "article_type": "vendor_advisory",
      "source_name": "CERT/CC Vulnerability Notes",
      "prompt_version": "v1.5",
      "extractor_model": "gpt-4.1-mini"
    }
  }
}
