npmWorst: Critical24 advisories
handlebars: known vulnerabilities
handlebars has 24 reviewed security advisories in the GitHub Advisory Database — 6 critical, 10 high, 7 moderate, 1 low. The most recent was published 2026-10-06. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the handlebars versions running across your servers, containers and images, and ranks what to patch first.
How to fix handlebars
Upgrade handlebars to a release at or above the fixed version shown for each advisory below. For npm:
npm install handlebars@4.7.10 (or run npm audit fix)
SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.
Advisories (24)
Handlebars: JavaScript Injection via AST Type Confusion in compile (bypass of CVE-2026-33937)
Critical 9.8 CWE-843 CWE-94
— Affected: from 4.0.0 up to 4.7.10. Fixed in 4.7.10. Published 2026-10-06. GHSA-8r5x-fm3f-whwj · CVE-2026-106446
Handlebars: JavaScript Injection via Own Property Check Bypass
Critical CWE-1289 CWE-184
— Affected: from 3.0.0 up to 4.7.10. Fixed in 4.7.10. Published 2026-10-06. GHSA-p8wg-vrv2-v86f · CVE-2026-106445
Handlebars: JavaScript Injection via Unsafe Inline Embedding of Precompiled Templates
Moderate 4.7 CWE-116
— Affected: from 4.0.0 up to 4.7.10. Fixed in 4.7.10. Published 2026-10-06. GHSA-xw65-4hp5-5hc7 · CVE-2026-106444
Handlebars.js has a Property Access Validation Bypass in container.lookup
Low 3.7 CWE-367
— Affected: from 4.0.0 up to 4.7.9. Fixed in 4.7.9. Published 2026-03-29. GHSA-442j-39wm-28r2
Handlebars.js has a Prototype Method Access Control Gap via Missing __lookupSetter__ Blocklist Entry
Moderate 4.8 CWE-1321
— Affected: from 4.6.0 up to 4.7.9. Fixed in 4.7.9. Published 2026-03-29. GHSA-7rx3-28cr-v5wh
Handlebars.js has Prototype Pollution Leading to XSS through Partial Template Injection
Moderate 4.7 CWE-1321 CWE-79
— Affected: from 4.0.0 up to 4.7.9. Fixed in 4.7.9. Published 2026-03-27. GHSA-2qvq-rjwj-gvw9 · CVE-2026-33916
Handlebars.js has JavaScript Injection via AST Type Confusion
Critical 9.8 CWE-843 CWE-94
— Affected: from 4.0.0 up to 4.7.9. Fixed in 4.7.9. Published 2026-03-27. GHSA-2w6w-674q-4c4q · CVE-2026-33937
Handlebars.js has JavaScript Injection via AST Type Confusion by tampering @partial-block
High 8.1 CWE-843 CWE-94
— Affected: from 4.0.0 up to 4.7.9. Fixed in 4.7.9. Published 2026-03-27. GHSA-3mfm-83xf-c92r · CVE-2026-33938
Handlebars.js has Denial of Service via Malformed Decorator Syntax in Template Compilation
High 7.5 CWE-754
— Affected: from 4.0.0 up to 4.7.9. Fixed in 4.7.9. Published 2026-03-27. GHSA-9cx6-37pm-9jff · CVE-2026-33939
Handlebars.js has JavaScript Injection via AST Type Confusion when passing an object as dynamic partial
High 8.1 CWE-843 CWE-94
— Affected: from 4.0.0 up to 4.7.9. Fixed in 4.7.9. Published 2026-03-27. GHSA-xhpv-hc6g-r9c6 · CVE-2026-33940
Handlebars.js has JavaScript Injection in CLI Precompiler via Unescaped Names and Options
High 8.2 CWE-116 CWE-79 CWE-94
— Affected: from 4.0.0 up to 4.7.9. Fixed in 4.7.9. Published 2026-03-27. GHSA-xjpj-3mr7-gcpf · CVE-2026-33941
Prototype Pollution in handlebars
Critical 9.8 CWE-1321
— Affected: before 4.7.7. Fixed in 4.7.7. Published 2021-05-04. GHSA-765h-qjxv-5f44 · CVE-2021-23383
Remote code execution in handlebars when compiling templates
Critical 9.8 CWE-94
— Affected: before 4.7.7. Fixed in 4.7.7. Published 2021-04-12. GHSA-f2jv-r9rf-7988 · CVE-2021-23369
Arbitrary Code Execution in Handlebars
High 8.1 CWE-94
— Affected: from 4.0.0 up to 4.5.3. Fixed in 4.5.3. Published 2020-09-30. GHSA-3cqr-58rm-57f8 · CVE-2019-20920
Regular Expression Denial of Service in Handlebars
High 7.5 CWE-400
— Affected: from 4.0.0 up to 4.4.5. Fixed in 4.4.5. Published 2020-09-30. GHSA-62gr-4qp9-h98f · CVE-2019-20922
Arbitrary Code Execution in handlebars
High 7.3 CWE-94
— Affected: from 4.0.0 up to 4.5.2. Fixed in 4.5.2. Published 2020-09-04. GHSA-2cf5-4w76-r9qv
Prototype Pollution in handlebars
High CWE-1321
— Affected: from 4.0.0 up to 4.5.3. Fixed in 4.5.3. Published 2020-09-04. GHSA-g9r4-xpmj-mj65
Arbitrary Code Execution in handlebars
High
— Affected: from 4.0.0 up to 4.5.3. Fixed in 4.5.3. Published 2020-09-04. GHSA-q2c6-c6pm-g3gh
Denial of Service in handlebars
Moderate CWE-400
— Affected: from 4.0.0 up to 4.4.5. Fixed in 4.4.5. Published 2020-09-03. GHSA-f52g-6jhx-586p
Prototype Pollution in handlebars
Critical 9.8 CWE-1321 CWE-74
— Affected: before 3.0.8. Fixed in 3.0.8. Published 2019-12-20. GHSA-w457-6q6x-cgp9 · CVE-2019-19919
Remote code execution in Handlebars.js
Moderate
— Affected: before 4.1.0. Fixed in 4.1.0. Published 2019-07-15. GHSA-6r5x-hmgg-7h53
Prototype Pollution in handlebars
High 7.3 CWE-471
— Affected: before 3.0.7. Fixed in 3.0.7. Published 2019-06-05. GHSA-q42p-pg8m-cqh6
Cross-Site Scripting in handlebars
Moderate 6.1 CWE-79
— Affected: before 4.0.0. Fixed in 4.0.0. Published 2018-10-23. GHSA-9prh-257w-9277 · CVE-2015-8861
Moderate severity vulnerability that affects handlebars
Moderate
— Affected: before 4.0.0. Fixed in 4.0.0. Published 2017-10-24. GHSA-fmr4-7g9q-7hc7
Find handlebars across your fleet
Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA,
CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month.
Start free.