CVE-2022-2900: Server-Side Request Forgery (SSRF) in parse-url
Summary
CVE-2022-2900: Server-Side Request Forgery (SSRF) in GitHub repository ionicabizau/parse-url. Affects parse-url versions < 8.1.0. Fixed in 8.1.0. 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
parse-url is an npm package that provides a utility for parsing and manipulating URLs. It is commonly used in web applications to extract information from URLs. However, versions prior to 8.1.0 are vulnerable to a Server-Side Request Forgery (SSRF) attack.
Vulnerability Detail
The SSRF vulnerability in parse-url allows an attacker to make arbitrary HTTP requests from the server-side, potentially leading to unauthorized access to internal resources or remote code execution. This vulnerability arises due to insufficient input validation and sanitization of user-supplied URLs. An attacker can craft a malicious URL that triggers the SSRF vulnerability and exploit it to perform actions on behalf of the server, bypassing any client-side security measures.
How To Fix
Latest published version: 11.1.0 as of 22 Oct 2026
npm install parse-url@11.1.0
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
8.1.0
This is the first release that contains the fix.
npm install parse-url@8.1.0
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Conclusion
The SSRF vulnerability in parse-url prior to version 8.1.0 can lead to unauthorized access to internal resources and potential remote code execution. It is crucial to upgrade parse-url to the latest version to mitigate this vulnerability. For further support on vulnerability remediation, contact DevNack.com.
See every vulnerability recorded for parse-url →
FAQ
Server-Side Request Forgery (SSRF) is a type of vulnerability that allows an attacker to make requests from the server-side, potentially accessing internal resources or performing actions on behalf of the server.
The SSRF vulnerability in parse-url can lead to unauthorized access to internal resources, remote code execution, and potential data breaches.
Currently, there is no known workaround for this vulnerability. It is recommended to upgrade parse-url to the latest version.
You can use Vulert's playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Simply upload your package-lock.json file and Vulert will provide real-time alerts for open-source vulnerabilities.
For further support on vulnerability remediation, you can contact info@devnack.com. They can provide guidance and assistance in fixing this vulnerability.
Related vulnerabilities
Recent vulnerabilities recorded for parse-url.