Vulnerability Details : 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 category: Cross site scripting (XSS)
Products affected by CVE-2019-20920
- cpe:2.3:a:handlebarsjs:handlebars:*:*:*:*:*:node.js:*:*
- cpe:2.3:a:handlebarsjs:handlebars:*:*:*:*:*:node.js:*:*
Exploit prediction scoring system (EPSS) score for CVE-2019-20920
0.70%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 78 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2019-20920
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
6.8
|
MEDIUM | AV:N/AC:M/Au:N/C:P/I:P/A:P |
8.6
|
6.4
|
NIST | |
8.1
|
HIGH | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:L |
2.2
|
5.3
|
NIST |
CWE ids for CVE-2019-20920
-
The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.Assigned by: nvd@nist.gov (Primary)
References for CVE-2019-20920
-
https://www.npmjs.com/advisories/1316
npmExploit;Third Party Advisory
-
https://www.npmjs.com/advisories/1324
npmThird Party Advisory
-
https://snyk.io/vuln/SNYK-JS-HANDLEBARS-534478
Arbitrary Code Execution in handlebars | SnykThird Party Advisory
Jump to