handlebars vulnerabilities

Handlebars provides the power necessary to let you build semantic templates effectively with no frustration

Registry
npm
Latest
4.7.10
License
MIT

22 known advisories

The latest version, 4.7.10, is not affected by any of them. Projects on older versions may be.

Update to the latest version:npm install handlebars@4.7.10

Security advisories for handlebars

  • MediumGHSA-xw65-4hp5-5hc78 Oct 2026

    Handlebars: JavaScript Injection via Unsafe Inline Embedding of Precompiled Templates

    Affected
    >=4.0.0 <4.7.10
    Fixed in
    4.7.10
  • CriticalGHSA-8r5x-fm3f-whwj8 Oct 2026

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

    Affected
    >=4.0.0 <4.7.10
    Fixed in
    4.7.10
  • CriticalGHSA-p8wg-vrv2-v86f8 Oct 2026

    Handlebars: JavaScript Injection via Own Property Check Bypass

    Affected
    >=3.0.0 <4.7.10
    Fixed in
    4.7.10
  • MediumGHSA-7rx3-28cr-v5wh29 Mar 2026

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

    Affected
    >=4.6.0 <4.7.9
    Fixed in
    4.7.9
  • LowGHSA-442j-39wm-28r229 Mar 2026

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

    Affected
    >=4.0.0 <4.7.9
    Fixed in
    4.7.9
  • HighGHSA-xjpj-3mr7-gcpf27 Mar 2026

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

    Affected
    >=4.0.0 <4.7.9
    Fixed in
    4.7.9
  • HighGHSA-xhpv-hc6g-r9c627 Mar 2026

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

    Affected
    >=4.0.0 <4.7.9
    Fixed in
    4.7.9
  • HighGHSA-9cx6-37pm-9jff27 Mar 2026

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

    Affected
    >=4.0.0 <4.7.9
    Fixed in
    4.7.9
  • HighGHSA-3mfm-83xf-c92r27 Mar 2026

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

    Affected
    >=4.0.0 <4.7.9
    Fixed in
    4.7.9
  • CriticalGHSA-2w6w-674q-4c4q27 Mar 2026

    Handlebars.js has JavaScript Injection via AST Type Confusion

    Affected
    >=4.0.0 <4.7.9
    Fixed in
    4.7.9
  • MediumGHSA-2qvq-rjwj-gvw926 Mar 2026

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

    Affected
    >=4.0.0 <4.7.9
    Fixed in
    4.7.9
  • CriticalGHSA-765h-qjxv-5f4410 Feb 2022

    Prototype Pollution in handlebars

    Affected
    <4.7.7
    Fixed in
    4.7.7
  • HighGHSA-62gr-4qp9-h98f10 Feb 2022

    Regular Expression Denial of Service in Handlebars

    Affected
    >=4.0.0 <4.4.5
    Fixed in
    4.4.5
  • HighGHSA-3cqr-58rm-57f810 Feb 2022

    Arbitrary Code Execution in Handlebars

    Affected
    <3.0.8 · >=4.0.0 <4.5.3
    Fixed in
    3.0.8, 4.5.3
  • CriticalGHSA-f2jv-r9rf-79886 May 2021

    Remote code execution in handlebars when compiling templates

    Affected
    <4.7.7
    Fixed in
    4.7.7
  • HighGHSA-q2c6-c6pm-g3gh4 Sept 2020

    Arbitrary Code Execution in handlebars

    Affected
    <3.0.8 · >=4.0.0 <4.5.3
    Fixed in
    3.0.8, 4.5.3
  • HighGHSA-g9r4-xpmj-mj654 Sept 2020

    Prototype Pollution in handlebars

    Affected
    <3.0.8 · >=4.0.0 <4.5.3
    Fixed in
    3.0.8, 4.5.3
  • HighGHSA-2cf5-4w76-r9qv4 Sept 2020

    Arbitrary Code Execution in handlebars

    Affected
    <3.0.8 · >=4.0.0 <4.5.2
    Fixed in
    3.0.8, 4.5.2
  • MediumGHSA-f52g-6jhx-586p3 Sept 2020

    Denial of Service in handlebars

    Affected
    >=4.0.0 <4.4.5
    Fixed in
    4.4.5
  • CriticalGHSA-w457-6q6x-cgp926 Dec 2019

    Prototype Pollution in handlebars

    Affected
    >=4.0.0 <4.3.0 · <3.0.8
    Fixed in
    3.0.8, 4.3.0
  • HighGHSA-q42p-pg8m-cqh65 Jun 2019

    Prototype Pollution in handlebars

    Affected
    >=4.1.0 <4.1.2 · >=4.0.0 <4.0.14 · <3.0.7
    Fixed in
    3.0.7, 4.0.14, 4.1.2
  • MediumGHSA-9prh-257w-927723 Oct 2018

    Cross-Site Scripting in handlebars

    Affected
    <4.0.0
    Fixed in
    4.0.0

Which of your client projects still run an old handlebars?

NPMscan reads the package-lock.json, yarn.lock and pnpm-lock.yaml in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other npm packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the npm registry.