Vulnerability identifier: #VU71577
Vulnerability risk: Medium
CVSSv3.1: 6.4 [CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N/E:U/RL:O/RC:C]
CVE-ID:
CWE-ID:
CWE-94
Exploitation vector: Network
Exploit availability: No
Vulnerable software:
json5
Web applications /
JS libraries
Vendor: json5
Description
The disclosed vulnerability allows a remote attacker to perform cross-site scripting (XSS) attacks.
The vulnerability exists due to insufficient sanitization of user-supplied data within the JSON5.parse() function. A remote attacker can inject and execute arbitrary script code.
Successful exploitation of this vulnerability may allow a remote attacker to steal potentially sensitive information, change appearance of the web page, perform phishing and drive-by-download attacks.
Mitigation
Install update from vendor's website.
Vulnerable software versions
json5: 2.2.0 - 2.2.1, 2.1.0 - 2.1.3, 2.0.0 - 2.0.1, 1.0.0 - 1.0.1, 0.5.0 - 0.5.1, 0.4.0, 0.3.0, 0.2.0, 0.1.0, 0.0.0 - 0.0.1
External links
http://github.com/json5/json5/security/advisories/GHSA-9c47-m6qq-7p4h
http://github.com/json5/json5/issues/199
http://github.com/json5/json5/issues/295
http://github.com/json5/json5/pull/298
Can this vulnerability be exploited remotely?
Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.
Is there known malware, which exploits this vulnerability?
No. We are not aware of malware exploiting this vulnerability.