CVE-2019-20920

HIGH
Published Sep 30, 20205y ago · Modified Jun 17, 20261w ago
8.1 CVSS 3.1
High
Find Similar
Published Sep 30, 2020 5y ago
Last Modified Jun 17, 2026 1w ago

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

CVSS Details

Base Score
8.1
Exploitability
2.2
Impact
5.3
Vector string
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:L
Attack Vector Network
Attack Complexity High
Privileges Required None
User Interaction None
Scope Changed
Confidentiality High
Integrity Low
Availability Low

Threat Intelligence

No active exploitation signals — not in CISA KEV and no EPSS score yet.

Exploit & Patch Status
Public Exploit Known
No Patch Available

Weaknesses 1

CWE-94 Improper Control of Generation of Code (Code Injection) Injection

Affected Products 2

VendorProductVersionRange
handlebarsjshandlebars* <3.0.8
handlebarsjshandlebars*≥4.0.0  –  <4.5.3

References 3

  • snyk.io https://snyk.io/vuln/SNYK-JS-HANDLEBARS-534478
    Third Party Advisory
  • npmjs.com https://www.npmjs.com/advisories/1316
    ExploitThird Party Advisory
  • npmjs.com https://www.npmjs.com/advisories/1324
    Third Party Advisory

Remediation

No remediation data recorded yet

Check vendor advisories and the NVD entry for patch availability.