Is handlebars 4.1 vulnerable?

npm · 3 releases from 4.1.0 to 4.1.2 · latest handlebars is 4.7.10 · checked 1 Nov 2026

Yes: 19 known advisories

Yes. handlebars 4.1.2, the last 4.1 release, is affected by 19 known security advisories (6 critical, 9 high, 3 medium, 1 low), including CVE-2026-106446, CVE-2026-106445, CVE-2026-33937. 1 more affects earlier 4.1.x releases. Upgrade to 4.7.10 or later to fix all of them.

Upgrade with:npm install handlebars@4.7.10

Is your project affected?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Advisories affecting handlebars 4.1.2

  • MediumCVE-2026-106444GHSA-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
  • CriticalCVE-2026-106446GHSA-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
  • CriticalCVE-2026-106445GHSA-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
  • 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
  • HighCVE-2026-33941GHSA-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
  • HighCVE-2026-33940GHSA-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
  • HighCVE-2026-33939GHSA-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
  • HighCVE-2026-33938GHSA-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
  • CriticalCVE-2026-33937GHSA-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
  • MediumCVE-2026-33916GHSA-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
  • CriticalCVE-2021-23383GHSA-765h-qjxv-5f4410 Feb 2022

    Prototype Pollution in handlebars

    Affected
    <4.7.7
    Fixed in
    4.7.7
  • HighCVE-2019-20922GHSA-62gr-4qp9-h98f10 Feb 2022

    Regular Expression Denial of Service in Handlebars

    Affected
    >=4.0.0 <4.4.5
    Fixed in
    4.4.5
  • HighCVE-2019-20920GHSA-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
  • CriticalCVE-2021-23369GHSA-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
  • CriticalCVE-2019-19919GHSA-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

Fixed within 4.1.x, affecting earlier releases

  • 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

Which of your client projects are still on handlebars 4.1?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact handlebars version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other handlebars versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the npm registry. Refreshed daily.