CVE-2023-5572: @vrite/sdk Server-Side Request Forgery (SSRF) Vulnerability
CRITICALCVE-2023-5572 is a CRITICAL (CVSS 10.0) server-side request forgery (ssrf) vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting @vrite/sdk libraries in the npm ecosystem. The issue involves server-side request forgery (ssrf) in vriteio/vrite. Remediation is available by upgrading affected packages to version 0.3.0.
CVE-2023-5572 at a Glance
Security Impact
CVSS: 10.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H).
How to Fix CVE-2023-5572
To remediate this vulnerability, upgrade all affected @vrite/sdk 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 @vrite/sdk@0.3.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @vrite/sdk
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2023-5572, inspect your project dependencies using npm:
npm ls @vrite/sdk
Analyze the terminal output to locate any version of @vrite/sdk in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.3.0), your application is affected.
Note: The npm ls @vrite/sdk 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 @vrite/sdk, 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-2023-5572 Affected @vrite/sdk Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@vrite/sdk
|
npm |
< 0.3.0
|
0.3.0
|
References
Frequently Asked Questions
What is CVE-2023-5572?
Which @vrite/sdk versions are affected?
What version fixes CVE-2023-5572?
Is @vrite/sdk affected?
What is the CVSS score of CVE-2023-5572?
What CWE is associated with CVE-2023-5572?
How can I check npm dependencies for CVE-2023-5572?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-w35p-wxwj-rcm9",
"modified" : "2023-10-13T23:38:22Z",
"published" : "2023-10-13T12:30:16Z",
"aliases" : [ "CVE-2023-5572" ],
"summary" : "Server-Side Request Forgery (SSRF) in vriteio/vrite",
"details" : "Server-Side Request Forgery (SSRF) in GitHub repository vriteio/vrite prior to 0.3.0.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@vrite/sdk"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.3.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-5572"
}, {
"type" : "WEB",
"url" : "https://github.com/vriteio/vrite/commit/1877683b932bb33fb20d688e476284b70bb9fe23"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/vriteio/vrite"
}, {
"type" : "WEB",
"url" : "https://huntr.dev/bounties/db649f1b-8578-4ef0-8df3-d320ab33f1be"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-918" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2023-10-13T23:38:22Z",
"nvd_published_at" : "2023-10-13T10:15:10Z"
}
}