{
  "cveId": "CVE-2026-33938",
  "url": "https://patchblox.com/security/cve/CVE-2026-33938",
  "summary": "CVE-2026-33938 is fixed in node-handlebars on 1 platform by DEBIAN-CVE-2026-33938 (version 3:4.7.9-1), released March 27, 2026. It is not reported as exploited. Patch Radar priority: High.",
  "title": "Handlebars.js has JavaScript Injection via AST Type Confusion by tampering @partial-block",
  "description": "Handlebars provides the power necessary to let users build semantic templates. In versions 4.0.0 through 4.7.8, the \u0060@partial-block\u0060 special variable is stored in the template data context and is reachable and mutable from within a template via helpers that accept arbitrary objects. When a helper overwrites \u0060@partial-block\u0060 with a crafted Handlebars AST, a subsequent invocation of \u0060{{\u003E @partial-block}}\u0060 compiles and executes that AST, enabling arbitrary JavaScript execution on the server. Version 4.7.9 fixes the issue. Some workarounds are available. First, use the runtime-only build (\u0060require(\u0027handlebars/runtime\u0027)\u0060). The \u0060compile()\u0060 method is  absent, eliminating the vulnerable fallback path. Second, audit registered helpers for any that write arbitrary values to context objects. Helpers  should treat context data as read-only. Third, avoid registering helpers from third-party packages (such as \u0060handlebars-helpers\u0060) in  contexts where templates or context data can be influenced by untrusted input.",
  "published": "2026-03-27T21:17:27Z",
  "severity": "Important",
  "cvss": 8.1,
  "cvssVector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
  "cwe": "Improper Control of Generation of Code (\u0027Code Injection\u0027)",
  "epss": 0.00721,
  "epssPercentile": 0.54206,
  "priority": "High",
  "priorityTier": 3,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "vendorAdvisory": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-33938",
  "fixes": [
    {
      "platform": "linux",
      "product": "node-handlebars",
      "release": "Debian 14",
      "fixedVersion": "3:4.7.9-1",
      "fix": "DEBIAN-CVE-2026-33938",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2026-33938",
      "released": "2026-03-27T21:17:27Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-08T13:06:02Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}