Executive brief
parse-url is a JavaScript library used to parse and normalize URLs. A cross-site scripting (XSS) vulnerability in versions prior to 6.0.1 allows attackers to inject malicious scripts through specially crafted URLs, potentially affecting applications that use this library to process untrusted URL input. This could lead to account hijacking, data theft, or malware distribution to users.
Technical details
The vulnerability is a stored/reflected Cross-Site Scripting (CWE-79) flaw in the parse-url library prior to version 6.0.1. The library fails to properly sanitize or escape URL components when parsing input, allowing an attacker to inject arbitrary HTML and JavaScript code. The vulnerability requires user interaction (visiting a malicious link or rendering untrusted URL data in a web context) but has a network attack vector with low complexity. An attacker can execute arbitrary JavaScript in the context of an affected application, compromising user sessions and data. The fix was released in version 6.0.1 (patched on 2022-06-27).
Affected products
- ionicabizau parse-url prior to 6.0.1
Timeline
- 2022-06-28: disclosed: Vulnerability published
- 2022-06-27: patched: Fixed in version 6.0.1