CriticalGHSA-765h-qjxv-5f44CVE-2021-23383
Prototype Pollution in handlebars
Published 10 Feb 2022 · Updated 10 Sept 2026
Affected package
handlebarsnpm
- Affected
- <4.7.7
- Fixed in
- 4.7.7
Update to the fixed version for your release line, for example:
npm install handlebars@4.7.7Details
The package handlebars before 4.7.7 are vulnerable to Prototype Pollution when selecting certain compiling options to compile templates coming from an untrusted source.
Is GHSA-765h-qjxv-5f44 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
- Advisorynvd.nist.gov/vuln/detail/CVE-2021-23383
- Linkgithub.com/handlebars-lang/handlebars.js/commit/f0589701698268578199be25285b2ebea1c1e427
- Packagegithub.com/handlebars-lang/handlebars.js
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/handlebars-source/CVE-2021-23383.yml
- Linksecurity.netapp.com/advisory/ntap-20210618-0007
- Linksnyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1279031
- Linksnyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1279032
- Linksnyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1279030
- Linksnyk.io/vuln/SNYK-JS-HANDLEBARS-1279029
- Linkwww.npmjs.com/package/handlebars
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.