CVE-2019-20920
CVE-2019-20920 is a high-severity vulnerability in Handlebarsjs Handlebars with a CVSS 3.x base score of 8.1. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-94.
Key facts
- Severity: High (CVSS 3.x base score 8.1)
- CVSS v2: 6.8
- EPSS exploit prediction: 3% (87th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-94
- Affected product: Handlebarsjs Handlebars
- Published:
- Last modified:
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).
Frequently asked questions
- What is 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 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).
- How severe is CVE-2019-20920?
- CVE-2019-20920 has a CVSS 3.x base score of 8.1, rated high severity. It is exploitable over network with high attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity low, and availability low.
- Is CVE-2019-20920 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 3% (87th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2019-20920?
- CVE-2019-20920 affects Handlebarsjs Handlebars. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2019-20920?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- When was CVE-2019-20920 published?
- CVE-2019-20920 was published on 2020-09-30 and last updated on 2026-06-17.
References
- https://snyk.io/vuln/SNYK-JS-HANDLEBARS-534478
- https://www.npmjs.com/advisories/1316
- https://www.npmjs.com/advisories/1324
Affected products (1)
- cpe:2.3:a:handlebarsjs:handlebars:*:*:*:*:*:node.js:*:*
More vulnerabilities in Handlebarsjs Handlebars
- CVE-2026-33937 — Critical (CVSS 9.8): Handlebars provides the power necessary to let users build semantic templates. In versions 4.0.0 through 4.7.8,…
- CVE-2026-33941 — High (CVSS 8.2): Handlebars provides the power necessary to let users build semantic templates. In versions 4.0.0 through 4.7.8, the…
- CVE-2026-33940 — High (CVSS 8.1): Handlebars provides the power necessary to let users build semantic templates. In versions 4.0.0 through 4.7.8, a…
- CVE-2026-33938 — High (CVSS 8.1): Handlebars provides the power necessary to let users build semantic templates. In versions 4.0.0 through 4.7.8, the…
- CVE-2026-33939 — High (CVSS 7.5): Handlebars provides the power necessary to let users build semantic templates. In versions 4.0.0 through 4.7.8, when a…
- CVE-2019-20922 — High (CVSS 7.5): Handlebars before 4.4.5 allows Regular Expression Denial of Service (ReDoS) because of eager matching. The parser may…
All CVEs affecting Handlebarsjs Handlebars →
Other CWE-94 (Code Injection) vulnerabilities
- CVE-2026-57624 — Critical (CVSS 10.0): Unauthenticated Remote Code Execution (RCE) in Blocksy Companion Pro <= 2.1.46 versions.
- CVE-2026-10134 — Critical (CVSS 10.0): IBM Langflow OSS 1.0.0 through 1.9.3 allows an attacker to read every secret available to the Langflow process, read…
- CVE-2026-53576 — Critical (CVSS 10.0): Kestra is an open-source, event-driven orchestration platform. Prior to 1.0.45 and 1.3.21, the authentication filter…
- CVE-2026-10561 — Critical (CVSS 10.0): IBM Langflow OSS 1.0.0 through 1.9.3 has an vulnerability due to an improper isolation of Python execution combined…
- CVE-2026-25470 — Critical (CVSS 10.0): Improper Control of Generation of Code ('Code Injection') vulnerability in ACPT ACPT (Pro) - Custom Post Types Plugin…
- CVE-2026-48836 — Critical (CVSS 10.0): Unauthenticated Remote Code Execution (RCE) in Easy Invoice <= 2.1.19 versions.