CVE-2021-23369
CRITICAL 9.8CVSS 3.1Remote code execution in handlebars when compiling templates
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.
- Published
- 12 Apr 2021
- Last modified
- 8 Oct 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-94
- Also known as
- GHSA-f2jv-r9rf-7988
- Sources
- NVDJSONOSV GHSA-f2jv-r9rf-7988JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 5.6 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | handlebarsjs | handlebarscpe:2.3:a:handlebarsjs:handlebars:*:*:*:*:*:node.js:*:* |
< 4.7.7 | 4.7.7 |
| OSV | npm | handlebars | < 4.7.7 | 4.7.7 |
| OSV | Maven | org.webjars:handlebars | < 4.7.7 | 4.7.7 |
| OSV | Maven | org.webjars.npm:handlebars | < 4.7.7 | 4.7.7 |
| OSV | Maven | org.webjars.bowergithub.wycats:handlebars.js | < 4.7.7 | 4.7.7 |
References
- https://github.com/handlebars-lang/handlebars.js/commit/b6d3de7123eebba603e321f04afdbae608e8fea8 · Patch, Third Party Advisory, WEB
- https://github.com/handlebars-lang/handlebars.js/commit/f0589701698268578199be25285b2ebea1c1e427 · Patch, Third Party Advisory, WEB
- https://security.netapp.com/advisory/ntap-20210604-0008/ · Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1074950 · Exploit, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1074951 · Exploit, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1074952 · Exploit, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-HANDLEBARS-1056767 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-23369 · ADVISORY
- https://github.com/wycats/handlebars.js · PACKAGE
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 12 Apr 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 6 May 2021)