HighGHSA-62gr-4qp9-h98fCVE-2019-20922SNYK-JS-HANDLEBARS-480388
Regular Expression Denial of Service in Handlebars
Published 10 Feb 2022 · Updated 8 Jul 2026
Affected package
handlebarsnpm
- Affected
- >=4.0.0 <4.4.5
- Fixed in
- 4.4.5
Update to the fixed version for your release line, for example:
npm install handlebars@4.4.5Details
Handlebars before 4.4.5 allows Regular Expression Denial of Service (ReDoS) because of eager matching. The parser may be forced into an endless loop while processing crafted templates. This may allow attackers to exhaust system resources.
Is GHSA-62gr-4qp9-h98f in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected handlebars, and gives you the command that fixes it.
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.