CriticalGHSA-f2jv-r9rf-7988CVE-2021-23369
Remote code execution in handlebars when compiling templates
Published 6 May 2021 · 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 Remote Code Execution (RCE) when selecting certain compiling options to compile templates coming from an untrusted source.
Is GHSA-f2jv-r9rf-7988 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-23369
- Linkgithub.com/handlebars-lang/handlebars.js/commit/b6d3de7123eebba603e321f04afdbae608e8fea8
- Linkgithub.com/handlebars-lang/handlebars.js/commit/f0589701698268578199be25285b2ebea1c1e427
- Packagegithub.com/wycats/handlebars.js
- Linksecurity.netapp.com/advisory/ntap-20210604-0008
- Linksnyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1074950
- Linksnyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1074951
- Linksnyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1074952
- Linksnyk.io/vuln/SNYK-JS-HANDLEBARS-1056767
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.