# CVE-2019-20920: Arbitrary Code Execution in Handlebars

- Severity: High 8.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.03%, higher than 87% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-09-30T12:30:56.000Z
- Modified: 2026-10-08T22:16:54.603Z
- Also known as: GHSA-3cqr-58rm-57f8, SNYK-JS-HANDLEBARS-534478
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: mitre

## Description

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).

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- handlebars (npm): before 3.0.8; from 4.0.0 before 4.5.3
- handlebarsjs handlebars: before 3.0.8; from 4.0.0 before 4.5.3

## Every score

- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:L`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:L`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://www.npmjs.com/advisories/1316> (exploit, third-party-advisory, web)
- <https://www.npmjs.com/advisories/1324> (third-party-advisory, web)
- <https://snyk.io/vuln/SNYK-JS-HANDLEBARS-534478> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2019-20920> (advisory)
- <https://github.com/handlebars-lang/handlebars.js/commit/156061eb7707575293613d7fdf90e2bdaac029ee> (web)
- <https://github.com/handlebars-lang/handlebars.js/commit/d54137810a49939fd2ad01a91a34e182ece4528e> (web)
- <https://www.npmjs.com/package/handlebars> (web)

## Sources

- CVE List: [CVE-2019-20920](https://www.cve.org/CVERecord?id=CVE-2019-20920), CVE Terms of Use, modified 2026-10-08
- GitHub Advisory Database: [GHSA-3cqr-58rm-57f8](https://github.com/advisories/GHSA-3cqr-58rm-57f8), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2019-20920](https://nvd.nist.gov/vuln/detail/CVE-2019-20920), Public domain, modified 2026-10-08

---

Page: https://cve.day/CVE-2019-20920 · Whole record: https://cve.day/CVE-2019-20920.json · Rebuilt by cve.day 2026-11-25T22:57:50.036Z
