Authorization Bypass Vulnerability in Node URL Parse Package
Summary
DEBIAN-CVE-2022-0691: Authorization Bypass Through User-Controlled Key in NPM url-parse prior to 1.5.9. Affects node-url-parse versions < 1.5.3-1+deb11u1. Fixed in 1.5.3-1+deb11u1. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Node URL Parse is a widely used package in the Node.js ecosystem that provides utilities for parsing URLs. It is essential for applications that require URL manipulation and validation. However, this package has been found to be vulnerable to an authorization bypass issue, which could allow unauthorized access to certain functionalities within applications that utilize it.
Vulnerability Detail
The vulnerability, identified as DEBIAN-CVE-2022-0691, stems from an authorization bypass through a user-controlled key in the npm package url-parse prior to version 1.5.9. This flaw could allow attackers to manipulate URL parsing in a way that bypasses authorization checks, potentially leading to unauthorized access to sensitive resources or functionalities within an application. The issue affects multiple Debian versions, including Debian 11, 12, 13, and 14.
How To Fix
Minimum fixed version
1.5.3-1+deb11u1
This is the first release that contains the fix.
sudo apt-get install --only-upgrade node-url-parse
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
If immediate patching is not feasible, consider implementing input validation to sanitize user inputs that may be used in URL parsing. This can help mitigate the risk of unauthorized access until the package can be updated.
Conclusion
The authorization bypass vulnerability in the Node URL Parse package poses significant risks to applications that rely on it. It is essential for developers and system administrators to update the package to the latest patched version to mitigate these risks. Additionally, utilizing tools like Vulert can help monitor and alert for open-source vulnerabilities in real-time.
See every vulnerability recorded for node-url-parse →
FAQ
The vulnerability allows for an authorization bypass through a user-controlled key, potentially leading to unauthorized access.
Versions prior to 1.5.9 of the url-parse package are affected.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
Implement input validation to sanitize user inputs used in URL parsing as a temporary workaround.
Detailed information can be found in the Debian CVE database at https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-0691.json.
References
Related vulnerabilities
Recent vulnerabilities recorded for node-url-parse.