MediumGHSA-f52g-6jhx-586p
Denial of Service in handlebars
Published 3 Sept 2020 · Updated 31 Aug 2020
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
Affected versions of handlebars are vulnerable to Denial of Service. The package's parser may be forced into an endless loop while processing specially-crafted templates. This may allow attackers to exhaust system resources leading to Denial of Service.
Recommendation
Upgrade to version 4.4.5 or later.
Is GHSA-f52g-6jhx-586p 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.