CVE-2019-20920
ADVISORY - githubSummary
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).
Common Weakness Enumeration (CWE)
Improper Control of Generation of Code ('Code Injection')
Improper Control of Generation of Code ('Code Injection')
OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities
Improper Control of Generation of Code ('Code Injection')
Improper Input Validation
GitHub
2.2
CVSS SCORE
8.1highPackage | Type | OS Name | OS Version | Affected Ranges | Fix Versions |
---|---|---|---|---|---|
handlebars | npm | - | - | <3.0.8 | 3.0.8 |
handlebars | npm | - | - | >=4.0.0,<4.5.3 | 4.5.3 |
CVSS:3 Severity and metrics
The CVSS metrics represent different qualitative aspects of a vulnerability that impact the overall score, as defined by the CVSS Specification.
The vulnerable component is bound to the network stack, but the attack is limited at the protocol level to a logically adjacent topology. This can mean an attack must be launched from the same shared physical (e.g., Bluetooth or IEEE 802.11) or logical (e.g., local IP subnet) network, or from within a secure or otherwise limited administrative domain (e.g., MPLS, secure VPN to an administrative network zone). One example of an Adjacent attack would be an ARP (IPv4) or neighbor discovery (IPv6) flood leading to a denial of service on the local LAN segment (e.g., CVE-2013-6014).
A successful attack depends on conditions beyond the attacker's control, requiring investing a measurable amount of effort in research, preparation, or execution against the vulnerable component before a successful attack.
The attacker is unauthorized prior to attack, and therefore does not require any access to settings or files of the vulnerable system to carry out an attack.
The vulnerable system can be exploited without interaction from any user.
An exploited vulnerability can affect resources beyond the security scope managed by the security authority of the vulnerable component. In this case, the vulnerable component and the impacted component are different and managed by different security authorities.
There is a total loss of confidentiality, resulting in all resources within the impacted component being divulged to the attacker. Alternatively, access to only some restricted information is obtained, but the disclosed information presents a direct, serious impact. For example, an attacker steals the administrator's password, or private encryption keys of a web server.
Modification of data is possible, but the attacker does not have control over the consequence of a modification, or the amount of modification is limited. The data modification does not have a direct, serious impact on the impacted component.
Performance is reduced or there are interruptions in resource availability. Even if repeated exploitation of the vulnerability is possible, the attacker does not have the ability to completely deny service to legitimate users. The resources in the impacted component are either partially available all of the time, or fully available only some of the time, but overall there is no direct, serious consequence to the impacted component.
NIST
2.2
CVSS SCORE
8.1highDebian
-
Ubuntu
2.2
CVSS SCORE
8.1mediumRed Hat
2.2
CVSS SCORE
8.1mediumChainguard
CGA-24pm-f3rp-x72m
-
Chainguard
CGA-2v3p-697v-8q7x
-
Chainguard
CGA-39hm-vwjg-hxfx
-
Chainguard
CGA-3v2r-9x33-r2g2
-
Chainguard
CGA-4mwc-pp23-3jwr
-
Chainguard
CGA-5453-fr58-q36r
-
Chainguard
CGA-5mvh-gj2c-jr9f
-
Chainguard
CGA-5prx-v88h-q62f
-
Chainguard
CGA-5wrh-ccg5-m38p
-
Chainguard
CGA-629p-j8rx-jx9g
-
Chainguard
CGA-752f-2q4r-9jc5
-
Chainguard
CGA-7683-m562-v88c
-
Chainguard
CGA-7qfh-879r-rr3r
-
Chainguard
CGA-9g49-hhq6-h6jw
-
Chainguard
CGA-9qcr-f526-x9m3
-
Chainguard
CGA-c5p2-gmxf-r43c
-
Chainguard
CGA-fcgp-97g2-8pc6
-
Chainguard
CGA-fmr2-w9x4-mrm8
-
Chainguard
CGA-fp4m-v286-fc33
-
Chainguard
CGA-gprp-r8wh-hmv7
-
Chainguard
CGA-gx8r-gqfc-w3rm
-
Chainguard
CGA-j38h-x6f8-5qq7
-
Chainguard
CGA-j4hg-cm75-mh7h
-
Chainguard
CGA-jfcv-wccc-vc4j
-
Chainguard
CGA-jv8v-2832-c4x2
-
Chainguard
CGA-mg53-v33v-529r
-
Chainguard
CGA-p5w7-wv4c-377r
-
Chainguard
CGA-pc4r-34xc-2wqc
-
Chainguard
CGA-rr5x-2fjp-cm7w
-
Chainguard
CGA-v9j6-22gx-9qhx
-
intheWild
-
-