RCE in Handlebarsjs Handlebars
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).
Vulnerability class: RCE (Remote Code Execution)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:L.
EPSS exploit prediction
EPSS 0.030, 87.7th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (SBZ-DevSecOps/Angular10-InsecureApp, seal-community/patches). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- www.npmjs.com/advisories/1316 (Exploit, Third Party Advisory)
- www.npmjs.com/advisories/1324 (Third Party Advisory)
- snyk.io/vuln/SNYK-JS-HANDLEBARS-534478 (Third Party Advisory)