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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | handlebars | unspecified – < 4.7.7 | 4.7.7 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-handlebars | 3:4.7.6+~4.1.0-2 | — |
| Debian 13 | node-handlebars | 3:4.7.6+~4.1.0-2 | — |
| Debian 12 | node-handlebars | 3:4.7.6+~4.1.0-2 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | node-handlebars | No fix yet | — |
| Ubuntu 26.04 LTS | node-handlebars | No fix yet | — |
| Ubuntu 25.10 | node-handlebars | No fix yet | — |
| Ubuntu 24.04 LTS | node-handlebars | No fix yet | — |
| Ubuntu 22.04 LTS | node-handlebars | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | node-handlebars | No fix yet | — |
| Ubuntu 18.04 LTS | node-handlebars | No fix yet | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 2 repositories
-
fazilbaig1/CVE-2021-23383 ★ 2 · Oct 19, 2024
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.
-
dn9uy3n/Check-CVE-2021-23383 ★ 1 · Jun 28, 2021
Check the conditions for exploiting CVE-2021-23383 through the handlebars library version assessment.
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | handlebars | < 4.7.7 | 4.7.7 | GHSA-765h-qjxv-5f44 |
Advisories 2
- WID-SEC-2023-3032 Tenable Security Nessus Network Monitor: Mehrere Schwachstellen BSI CERT-Bund (WID) · Dec 4, 2023
- WID-SEC-2022-1646 Red Hat OpenShift: Mehrere Schwachstellen ermöglichen Codeausführung BSI CERT-Bund (WID) · Dec 19, 2022
References
- https://github.com/handlebars-lang/handlebars.js/commit/f0589701698268578199be25285b2ebea1c1e427
- https://snyk.io/vuln/SNYK-JS-HANDLEBARS-1279029
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1279030
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1279031
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1279032
- https://security.netapp.com/advisory/ntap-20210618-0007/