CVE-2026-33941

HIGHNVD 8.28.2
EchelonGraph scoreLOW confidence

This high-severity CVE scores 8.2 under NVD CVSS v3. EPSS exploit-prediction score not yet available (the EPSS model rescores nightly; freshly-published CVEs typically appear within 48 hours). GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).

Triggered by: NVD CVSS baseline
Sources: nvd
8.2
EchelonGraph verdictPlan a fixSerious severity, but no confirmed exploitation yet.
  • High severity, but no confirmed exploitation yet
CISA-KEV: Not listedEPSS: 0%CVSS: 8.2Exploit: NoneExposed: 0

A fix is available — apply it.

Handlebars provides the power necessary to let users build semantic templates. In versions 4.0.0 through 4.7.8, the Handlebars CLI precompiler (bin/handlebars / lib/precompiler.js) concatenates user-controlled strings — template file names and several CLI options — directly into the JavaScript it emits, without any escaping or sanitization. An attacker who can influence template filenames or CLI arguments can inject arbitrary JavaScript that executes when the generated bundle is loaded in Node.js or a browser. Version 4.7.9 fixes the issue. Some workarounds are available. First, validate all CLI inputs before invoking the precompiler. Reject filenames and option values that contain characters with JavaScript string-escaping significance (", ', ;, etc.). Second, use a fixed, trusted namespace string passed via a configuration file rather than command-line arguments in automated pipelines. Third, run the precompiler in a sandboxed environment (container with no write access to sensitive paths) to limit the impact of successful exploitation. Fourth, audit template filenames in any repository or package that is consumed by an automated build pipeline.

CVSS v3
8.2
EG Score
8.2(low)
EPSS
20.9%
KEV
Not listed

Published

March 27, 2026

Last Modified

July 2, 2026

Advisory Details (7)

Auto-updated Jun 30, 2026
🔬 Proof of concept available. Patch available. Sources: redhat, github_commit, github_release, github.
redhat Patch Available

Affected: Red Hat Enterprise Linux 10",

https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-33941.json
redhat Patch Available

2452524 – (CVE-2026-33941) CVE-2026-33941 handlebars.js: Handlebars: Arbitrary code execution via CLI precompiler input sanitization flaw

https://bugzilla.redhat.com/show_bug.cgi?id=2452524
redhat Patch Available

cve-details

https://access.redhat.com/security/cve/CVE-2026-33941
github Patch Available🟡 PoC Available

JavaScript Injection in CLI Precompiler via Unescaped Names and Options · Advisory · handlebars-lang/handlebars.js · GitHub

https://github.com/handlebars-lang/handlebars.js/security/advisories/GHSA-xjpj-3mr7-gcpf
github_release Patch Available

v4.7.9

Patch available: handlebars-lang/handlebars.js v4.7.9

https://github.com/handlebars-lang/handlebars.js/releases/tag/v4.7.9
github_commit Patch Available

commit 68d8df5a88e0 (handlebars-lang/handlebars.js)

Patch available: handlebars-lang/handlebars.js v4.7.9 (contains commit 68d8df5a88e0)

https://github.com/handlebars-lang/handlebars.js/commit/68d8df5a88e0a26fe9e6084c5c6aaebe67b07da2

Patch Availability(1)

Vendor / EcosystemFixed in / PatchReleasedSource
redhatdevspaces/code-rhel9:17767441102026-04-23redhat

Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.

Affected Packages

(1 across 1 ecosystem)
npm(1)
PackageVulnerable rangeFixed inDependents
handlebars4.7.9

Weakness Classification(3)

MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.

Data Freshness Timeline

(refreshed 8× in last 7d / 11× in last 30d)

Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.

  1. 2026-07-06 16:27 UTCEPSS rescore
  2. 2026-07-06 16:27 UTCEPSS rescore
  3. 2026-07-06 02:23 UTCEPSS rescore
  4. 2026-07-06 02:23 UTCEPSS rescore
  5. 2026-07-05 02:30 UTCEPSS rescore
  6. 2026-07-04 06:31 UTCEPSS rescore
  7. 2026-07-01 15:06 UTCEPSS rescore
  8. 2026-06-30 23:22 UTCEPSS rescore
  9. 2026-06-30 04:36 UTCEG score recompute
  10. 2026-06-30 04:36 UTCVendor advisory
  11. 2026-06-30 04:32 UTCNVD updatefirst tracked

Frequently asked(5)

What is CVE-2026-33941?
CVE-2026-33941 is a high vulnerability published on March 27, 2026. Handlebars provides the power necessary to let users build semantic templates. In versions 4.0.0 through 4.7.8, the Handlebars CLI precompiler (bin/handlebars / lib/precompiler.js) concatenates user-controlled strings — template file names and several CLI options — directly into the JavaScript it…
When was CVE-2026-33941 disclosed?
CVE-2026-33941 was first published in the National Vulnerability Database on March 27, 2026, with the most recent update on July 2, 2026. EchelonGraph re-ingests CVE updates from NVD on a 2-hour cycle, so this page reflects the latest published state.
Is CVE-2026-33941 actively exploited?
CVE-2026-33941 is not currently on CISA's Known Exploited Vulnerabilities catalog. FIRST EPSS estimates a 20.9% percentile likelihood of exploitation in the next 30 days — higher percentiles indicate greater predicted risk.
What is the CVSS score of CVE-2026-33941?
CVE-2026-33941 has a CVSS v3 base score of 8.2 (NVD). The EG score is currently aggregating — additional source signals are being incorporated as they become available..
How do I remediate CVE-2026-33941?
Patch to the fixed version published by the affected vendor. Where vendor advisories exist for CVE-2026-33941, EchelonGraph cross-links them in the Vendor Advisories panel below — those typically contain the canonical remediation steps, fixed version numbers, and any vendor-specific mitigations.

Dependency Blast Radius

See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-33941

Explore →

Is Your Infrastructure Affected by CVE-2026-33941?

EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.