CVE-2022-2216: Server-Side Request Forgery in parse-url
Summary
CVE-2022-2216: Server-Side Request Forgery in parse-url. Affects parse-url versions < 6.0.1. Fixed in 6.0.1. 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
The parse-url package is an npm package that provides functionality for parsing and manipulating URLs. It is commonly used in web applications to handle URL-related operations. However, versions prior to 7.0.0 of the parse-url package are vulnerable to a Server-Side Request Forgery (SSRF) attack.
Vulnerability Detail
The Server-Side Request Forgery (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 services. This vulnerability arises due to insufficient input validation and sanitization of user-supplied URLs. An attacker can exploit this vulnerability by providing a specially crafted URL that triggers the SSRF attack. The impact of this vulnerability can be severe, as it allows an attacker to bypass network restrictions and access sensitive information or perform actions on behalf of the server.
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
6.0.1
This is the first release that contains the fix.
npm install parse-url@6.0.1
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no known workaround for this vulnerability. It is necessary to upgrade to the fixed version of the parse-url package.
Conclusion
The parse-url package prior to version 7.0.0 is vulnerable to a Server-Side Request Forgery (SSRF) attack. To mitigate this vulnerability, it is crucial to upgrade to the fixed version of the package and validate/sanitize user-supplied URLs. For further support on vulnerability remediation, you can 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 arbitrary HTTP requests from the server-side, potentially accessing internal resources or services.
The impact of this vulnerability can be severe, as it allows an attacker to bypass network restrictions and access sensitive information or perform actions on behalf of the server.
To fix this vulnerability, it is recommended to upgrade to version 7.0.0 or later of the parse-url package and validate/sanitize user-supplied URLs.
There is no known workaround for this vulnerability. It is necessary to upgrade to the fixed version of the parse-url package.
For more information about this vulnerability, you can refer to the GitHub advisory database entry: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-7f3x-x4pr-wqhj/GHSA-7f3x-x4pr-wqhj.json
References
Related vulnerabilities
Recent vulnerabilities recorded for parse-url.