CVE-2019-20920
mediumpriority · track · 33EPSS 0.032 · 88 %ileEUUSEPSS · scored 2026-10-28
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).
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.8–8.1
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (5)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-3cqr-58rm-57f8Arbitrary Code Execution in Handlebars2022-02-10ghsa · osvUS
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).
also known as (4)
Other names and identifiers for this entity.
- CNNVD-202009-1701cnnvd
- EUVD-2022-0789enisa_euvd
- GHSA-3cqr-58rm-57f8enisa_euvd
- SNYK-JS-HANDLEBARS-534478osv
sources
Which sources assert this record, and when.
references (17)
External citations — patches, advisories, analysis.
- https://nvd.nist.gov/vuln/detail/CVE-2019-20920cnnvd
- https://packetstormsecurity.com/files/160209/Red-Hat-Security-Advisory-2020-5179-01.htmlcnnvd
- https://packetstormsecurity.com/files/163306/Red-Hat-Security-Advisory-2021-2500-01.htmlcnnvd
- https://packetstormsecurity.com/files/164555/Red-Hat-Security-Advisory-2021-3917-01.htmlcnnvd
- https://snyk.io/vuln/SNYK-JS-HANDLEBARS-534478cnnvd
- https://www.auscert.org.au/bulletins/ESB-2020.4180/cnnvd
- https://www.auscert.org.au/bulletins/ESB-2021.2276cnnvd
- https://www.auscert.org.au/bulletins/ESB-2021.3472cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan