
CVE catalog
CVE-2019-20920
Handlebars before 3.0.8 and 4.x before 4.5.3 is vulnerable to Arbitrary Code Execution. The lookup helper fails to properly validate templates, allowing attackers to submit templates that execute arbi
- Severity
- High · CVSS 8.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:L - Published
- Updated
- Source
- [NVD] · [CVE record]
- EPSS
- 3.15% · Oct 25, 2026
Handlebars before 3.0.8 and 4.x before 4.5.3 is vulnerable to Arbitrary Code Execution. The lookup helper fails to properly validate templates, allowing attackers to submit templates that execute arbitrary JavaScript. This can be used to run arbitrary code on a server processing Handlebars templates or in a victim's browser (effectively serving as XSS).
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | node-handlebars | sid | 3:4.7.10-1 | fixed |
| Debian | node-handlebars | forky | 3:4.7.10-1 | fixed |
| Debian | node-handlebars | trixie | 3:4.7.7+~4.1.0-1 | fixed |
| Debian | node-handlebars | bookworm | 3:4.7.7+~4.1.0-1 | fixed |
| Cpe | handlebars | Not reported | 3.0.8 | fixed |
| Cpe | handlebars | Not reported | 4.5.3 | fixed |
| Ubuntu | node-handlebars | 18.04 | 3:4.0.10-5 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | node-handlebars | source | sid | 3:4.5.3-1 | not yet assigned | Not reported | Not reported |
| Debian | node-handlebars | source | forky | 3:4.5.3-1 | not yet assigned | Not reported | Not reported |
| Debian | node-handlebars | source | trixie | 3:4.5.3-1 | not yet assigned | Not reported | Not reported |
| Debian | node-handlebars | source | bookworm | 3:4.5.3-1 | not yet assigned | Not reported | Not reported |
| Cpe | handlebars | cpe | Not reported | 3.0.8 | Not reported | NVD-CVE-2019-20920 | Not reported |
| Cpe | handlebars | cpe | Not reported | 4.5.3 | Not reported | NVD-CVE-2019-20920 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [handlebars]Fixed
Source package: [node-handlebars]
Details (2)
3:4.7.7+~4.1.0-1· all · bookwormFixed · Fixed:
3:4.5.3-1nvd · node-handlebars · debian · bookworm; nvd · node-handlebars · debian · 12
3:4.7.7+~4.1.0-1· all · bookwormFixed · Fixed:
3:4.5.3-1nvd · node-handlebars · debian · bookworm; nvd · node-handlebars · debian · 12
- [libjs-handlebars]Fixed
Source package: [node-handlebars]
Details (2)
3:4.7.7+~4.1.0-1· all · bookwormFixed · Fixed:
3:4.5.3-1nvd · node-handlebars · debian · bookworm; nvd · node-handlebars · debian · 12
3:4.7.7+~4.1.0-1· all · bookwormFixed · Fixed:
3:4.5.3-1nvd · node-handlebars · debian · bookworm; nvd · node-handlebars · debian · 12
- [libjs-handlebars.runtime]Fixed
Source package: [node-handlebars]
Details (2)
3:4.7.7+~4.1.0-1· all · bookwormFixed · Fixed:
3:4.5.3-1nvd · node-handlebars · debian · bookworm; nvd · node-handlebars · debian · 12
3:4.7.7+~4.1.0-1· all · bookwormFixed · Fixed:
3:4.5.3-1nvd · node-handlebars · debian · bookworm; nvd · node-handlebars · debian · 12
[Debian 13 (Trixie)]
- [handlebars]Fixed
Source package: [node-handlebars]
Details (2)
3:4.7.7+~4.1.0-1· all · trixieFixed · Fixed:
3:4.5.3-1nvd · node-handlebars · debian · 13
3:4.7.7+~4.1.0-1· all · trixieFixed · Fixed:
3:4.5.3-1nvd · node-handlebars · debian · 13
- [libjs-handlebars]Fixed
Source package: [node-handlebars]
Details (2)
3:4.7.7+~4.1.0-1· all · trixieFixed · Fixed:
3:4.5.3-1nvd · node-handlebars · debian · 13
3:4.7.7+~4.1.0-1· all · trixieFixed · Fixed:
3:4.5.3-1nvd · node-handlebars · debian · 13
- [libjs-handlebars.runtime]Fixed
Source package: [node-handlebars]
Details (2)
3:4.7.7+~4.1.0-1· all · trixieFixed · Fixed:
3:4.5.3-1nvd · node-handlebars · debian · 13
3:4.7.7+~4.1.0-1· all · trixieFixed · Fixed:
3:4.5.3-1nvd · node-handlebars · debian · 13
Observed:
References
- [https://nvd.nist.gov/vuln/detail/CVE-2019-20920]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2019-20920]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2019-20920]
- [https://security-tracker.debian.org/tracker/CVE-2019-20920]
- [https://security.access.redhat.com/data/csaf/v2/vex/2019/cve-2019-20920.json]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]