CVE-2022-2900: Parse url Server-Side Request Forgery (SSRF) Vulnerability
CRITICALCVE-2022-2900 is a CRITICAL (CVSS 9.1) server-side request forgery (ssrf) vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Parse url libraries in the npm ecosystem. The issue involves server-side request forgery (ssrf) in github repository ionicabizau/parse-url. Remediation is available by upgrading affected packages to version 8.1.0.
CVE-2022-2900 at a Glance
Security Impact
CVSS: 9.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N).
How to Fix CVE-2022-2900
To remediate this vulnerability, upgrade all affected Parse url dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install parse-url@8.1.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls parse-url
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2022-2900, inspect your project dependencies using npm:
npm ls parse-url
Analyze the terminal output to locate any version of Parse url in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 8.1.0), your application is affected.
Note: The npm ls parse-url command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In Parse url, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2022-2900 Affected Parse url Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
parse-url
|
npm |
< 8.1.0
|
8.1.0
|
References
Frequently Asked Questions
What is CVE-2022-2900?
Which Parse url versions are affected?
What version fixes CVE-2022-2900?
Is parse-url affected?
What is the CVSS score of CVE-2022-2900?
What CWE is associated with CVE-2022-2900?
How can I check npm dependencies for CVE-2022-2900?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-j9fq-vwqv-2fm2",
"modified" : "2023-06-21T18:10:04Z",
"published" : "2022-09-15T00:00:24Z",
"aliases" : [ "CVE-2022-2900" ],
"summary" : "Server-Side Request Forgery (SSRF) in GitHub repository ionicabizau/parse-url",
"details" : "Server-Side Request Forgery (SSRF) in GitHub repository ionicabizau/parse-url prior to 8.1.0.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "parse-url"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "8.1.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-2900"
}, {
"type" : "WEB",
"url" : "https://github.com/ionicabizau/parse-url/commit/b88c81df8f4c5168af454eaa4f92afa9349e4e13"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/IonicaBizau/parse-url"
}, {
"type" : "WEB",
"url" : "https://huntr.dev/bounties/1b4c972a-abc8-41eb-a2e1-696db746b5fd"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-918" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2022-09-15T16:17:41Z",
"nvd_published_at" : "2022-09-14T11:15:00Z"
}
}