Vulnerability · Published May 4, 2021 · Assigned by snyk
CVE-2021-23383Prototype Pollution
Medium 5.6
In plain English
A medium-severity security flaw in handlebars. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 4.5% (higher than 92% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)5.6Medium
Exploit odds (30 days)4.5%top 8.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-handlebars | 3:4.7.6+~4.1.0-2 | DEBIAN-CVE-2021-23383 |
| Debian:13 | node-handlebars | 3:4.7.6+~4.1.0-2 | DEBIAN-CVE-2021-23383 |
| Debian:14 | node-handlebars | 3:4.7.6+~4.1.0-2 | DEBIAN-CVE-2021-23383 |
| Ubuntu:22.04:LTS | node-handlebars | no fix listed | UBUNTU-CVE-2021-23383 |
| Ubuntu:24.04:LTS | node-handlebars | no fix listed | UBUNTU-CVE-2021-23383 |
| Ubuntu:25.10 | node-handlebars | no fix listed | UBUNTU-CVE-2021-23383 |
| Ubuntu:26.04:LTS | node-handlebars | no fix listed | UBUNTU-CVE-2021-23383 |
| Ubuntu:26.10 | node-handlebars | no fix listed | UBUNTU-CVE-2021-23383 |
| npm | handlebars | 4.7.7 | GHSA-765h-qjxv-5f44 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | handlebars | unspecified – before 4.7.7 |
References
- https://github.com/handlebars-lang/handlebars.js/commit/f0589701698268578199be25285b2ebea1c1e427 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JS-HANDLEBARS-1279029 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1279030 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1279031 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1279032 x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20210618-0007/ x_refsource_CONFIRM