Description
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.
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 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-23369 ★ 2 · Oct 19, 2024
Handlebars CVE-2021-23369 Vulnerability
-
dinhvaren/cve-2021-23369 ★ 0 · Mar 28, 2026
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 |
|---|---|---|---|---|
| Maven | org.webjars:handlebars | < 4.7.7 | 4.7.7 | GHSA-f2jv-r9rf-7988 |
| Maven | org.webjars.bowergithub.wycats:handlebars.js | < 4.7.7 | 4.7.7 | GHSA-f2jv-r9rf-7988 |
| Maven | org.webjars.npm:handlebars | < 4.7.7 | 4.7.7 | GHSA-f2jv-r9rf-7988 |
| npm | handlebars | < 4.7.7 | 4.7.7 | GHSA-f2jv-r9rf-7988 |
Advisories 3
- WID-SEC-2024-0899 Oracle Fusion Middleware: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jun 9, 2025
- 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://snyk.io/vuln/SNYK-JS-HANDLEBARS-1056767
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1074950
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1074951
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1074952
- https://github.com/handlebars-lang/handlebars.js/commit/b6d3de7123eebba603e321f04afdbae608e8fea8
- https://github.com/handlebars-lang/handlebars.js/commit/f0589701698268578199be25285b2ebea1c1e427
- https://security.netapp.com/advisory/ntap-20210604-0008/