npm package

handlebars 4.7.8 vulnerabilities, and the version that fixes all of them

handlebars 4.7.8 has 11 known vulnerabilities (7 rated high or critical); 4.7.10 fixes all of them.

npm (opens in a new tab) describes it as “Handlebars provides the power necessary to let you build semantic templates effectively with no frustration”

Known vulnerabilities
11
7 rated high or critical
Released
Aug 1, 2023
Latest is 4.7.10
Downloads last week
8.6M
20% of handlebars downloads
Licence
MIT
Pulls in
5 packages
Resolved by deps.dev

What to upgrade to

4.7.10 is the closest release with no known vulnerabilities.

  • 4.7.10Upgrade to this

    Fixes all 11 known vulnerabilities and the newest 4.x release and the latest release. Released Oct 5, 2026.

    No known vulnerabilities

4.7.10 came out on Oct 5, 2026. A coding agent trained before then doesn’t know it exists, so it may suggest an older release. AI knowledge cutoff dates

Hand the fix to your coding agent

One task with the upgrade, the file to change and why. Paste it into Claude Code, Cursor or Codex.

Findings

Every advisory for handlebars 4.7.8

Known exploited first (CISA KEV), then by how likely they are to be exploited (FIRST EPSS), then by severity. Each id links to its OSV.dev record.

  1. WarningCVE-2026-33916 on OSV.dev (opens in a new tab)GHSA-2qvq-rjwj-gvw9EPSS: top 6%

    Handlebars.js has Prototype Pollution Leading to XSS through Partial Template Injection

    Fixed in 4.7.9. Published Mar 26, 2026.

  2. CriticalCVE-2026-33937 on OSV.dev (opens in a new tab)GHSA-2w6w-674q-4c4qEPSS: top 23%

    Handlebars.js has JavaScript Injection via AST Type Confusion

    Fixed in 4.7.9. Published Mar 27, 2026.

  3. CriticalCVE-2026-33938 on OSV.dev (opens in a new tab)GHSA-3mfm-83xf-c92rEPSS: top 43%

    Handlebars.js has JavaScript Injection via AST Type Confusion by tampering @partial-block

    Fixed in 4.7.9. Published Mar 27, 2026.

  4. CriticalCVE-2026-33940 on OSV.dev (opens in a new tab)GHSA-xhpv-hc6g-r9c6EPSS: top 45%

    Handlebars.js has JavaScript Injection via AST Type Confusion when passing an object as dynamic partial

    Fixed in 4.7.9. Published Mar 27, 2026.

  5. CriticalCVE-2026-33939 on OSV.dev (opens in a new tab)GHSA-9cx6-37pm-9jffEPSS: top 46%

    Handlebars.js has Denial of Service via Malformed Decorator Syntax in Template Compilation

    Fixed in 4.7.9. Published Mar 27, 2026.

  6. CriticalCVE-2026-106446 on OSV.dev (opens in a new tab)GHSA-8r5x-fm3f-whwjEPSS: top 51%

    Handlebars: JavaScript Injection via AST Type Confusion in compile (bypass of CVE-2026-33937)

    Fixed in 4.7.10. Published Oct 8, 2026.

  7. CriticalCVE-2026-106445 on OSV.dev (opens in a new tab)GHSA-p8wg-vrv2-v86fEPSS: top 67%

    Handlebars: JavaScript Injection via Own Property Check Bypass

    Fixed in 4.7.10. Published Oct 8, 2026.

  8. WarningCVE-2026-106444 on OSV.dev (opens in a new tab)GHSA-xw65-4hp5-5hc7EPSS: top 80%

    Handlebars: JavaScript Injection via Unsafe Inline Embedding of Precompiled Templates

    Fixed in 4.7.10. Published Oct 8, 2026.

  9. CriticalCVE-2026-33941 on OSV.dev (opens in a new tab)GHSA-xjpj-3mr7-gcpfEPSS: top 89%

    Handlebars.js has JavaScript Injection in CLI Precompiler via Unescaped Names and Options

    Fixed in 4.7.9. Published Mar 27, 2026.

  10. WarningGHSA-7rx3-28cr-v5wh on OSV.dev (opens in a new tab)

    Handlebars.js has a Prototype Method Access Control Gap via Missing __lookupSetter__ Blocklist Entry

    Fixed in 4.7.9. Published Mar 29, 2026.

  11. LowGHSA-442j-39wm-28r2 on OSV.dev (opens in a new tab)

    Handlebars.js has a Property Access Validation Bypass in container.lookup

    Fixed in 4.7.9. Published Mar 29, 2026.

Who is still on a vulnerable handlebars

83% of last week’s 43.4M handlebars downloads went to versions with known vulnerabilities.

From npm’s per-version download counts for the last 7 days, each version checked against OSV.dev. The versions checked cover over 99% of downloads.

Is handlebars the only one?

Paste a public GitHub repo or drop your package.json and see every vulnerable, end-of-life or deprecated dependency, with one fix task. Free, no sign-up.

Check your whole repo

How this page is checked

StackPrism asks OSV.dev which advisories affect exactly handlebars 4.7.8, merges duplicates filed under several ids, and ranks them with CISA’s Known Exploited Vulnerabilities list and FIRST EPSS. Release dates and deprecation come from deps.dev and npm. No AI writes this page: every sentence comes from that data, refreshed every few hours.

Last checked against npm, OSV.dev, deps.dev, CISA KEV and FIRST EPSS.