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.
Fix
Public exploits 2
- dinhvaren/cve-2021-23369 PoC on GitHub
- fazilbaig1/CVE-2021-23369 PoC on GitHub
Each line links to the index that lists it, never to exploit code. Exploit-DB's "verified" and a Metasploit rank of good or better count as verified; a PoC-in-GitHub entry is a repository's claim.
Patch, vendor advisory and mitigation references on NVD 4
- https://github.com/handlebars-lang/handlebars.js/commit/b6d3de7123eebba603e321f04afdbae608e8fea8 Patch, Third Party Advisory
- https://github.com/handlebars-lang/handlebars.js/commit/f0589701698268578199be25285b2ebea1c1e427 Patch, Third Party Advisory
- https://github.com/handlebars-lang/handlebars.js/commit/b6d3de7123eebba603e321f04afdbae608e8fea8 Patch, Third Party Advisory
- https://github.com/handlebars-lang/handlebars.js/commit/f0589701698268578199be25285b2ebea1c1e427 Patch, Third Party Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 9.8 · handlebarsjsNVD modified 2026-10-08 22:17
Affected (CPE criteria) 1
cpe:2.3:a:handlebarsjs:handlebars:*:*:*:*:*:node.js:*:*
References 14
- https://github.com/handlebars-lang/handlebars.js/commit/b6d3de7123eebba603e321f04afdbae608e8fea8 Patch, Third Party Advisory
- https://github.com/handlebars-lang/handlebars.js/commit/f0589701698268578199be25285b2ebea1c1e427 Patch, Third Party Advisory
- https://security.netapp.com/advisory/ntap-20210604-0008/ Third Party Advisory
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1074950 Exploit, Third Party Advisory
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1074951 Exploit, Third Party Advisory
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1074952 Exploit, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-HANDLEBARS-1056767 Exploit, Third Party Advisory
- https://github.com/handlebars-lang/handlebars.js/commit/b6d3de7123eebba603e321f04afdbae608e8fea8 Patch, Third Party Advisory
- https://github.com/handlebars-lang/handlebars.js/commit/f0589701698268578199be25285b2ebea1c1e427 Patch, Third Party Advisory
- https://security.netapp.com/advisory/ntap-20210604-0008/ Third Party Advisory
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1074950 Exploit, Third Party Advisory
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1074951 Exploit, Third Party Advisory
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1074952 Exploit, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-HANDLEBARS-1056767 Exploit, Third Party Advisory