Vulnerabilities in pkg:npm/@vrite/sdk

PACKAGE
Advisory Identifier: GHSA-w35p-wxwj-rcm9
Advisory Summary

CVE-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.

3 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@vrite/sdk

3 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@vrite/sdk. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-w35p-wxwj-rcm9 CVE-2023-5572 CRITICAL Server-Side Request Forgery (SSRF) in vriteio/vrite
GHSA-44ff-9w4f-99w6 CVE-2023-5571 MODERATE Improper Input Validation in vriteio/vrite
GHSA-5ghm-h2wq-g3mh CVE-2023-5573 MODERATE Allocation of Resources Without Limits or Throttling in vriteio/vrite

CVE-2023-5572 at a Glance

CVE Identifier CVE-2023-5572
GHSA Identifier GHSA-w35p-wxwj-rcm9
Severity CRITICAL
CVSS v3.1 Base Score 10.0
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product @vrite/sdk
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

@vrite/sdk fixed: 0.3.0
npm install @vrite/sdk@0.3.0
Verify Direct and Transitive Dependencies

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

Server-Side Request Forgery (SSRF) in GitHub repository vriteio/vrite prior to 0.3.0.

CVE-2023-5572 Affected @vrite/sdk Versions

1 component(s)
Fixed Versions:
0.3.0
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?
CVE-2023-5572 is a security vulnerability in @vrite/sdk involving Server-Side Request Forgery (SSRF) in vriteio/vrite under CWE-918: Server-Side Request Forgery (SSRF).
Which @vrite/sdk versions are affected?
Affected versions include releases prior to 0.3.0 across affected packages: @vrite/sdk.
What version fixes CVE-2023-5572?
Upgrading to 0.3.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @vrite/sdk affected?
Yes, @vrite/sdk is affected in releases prior to 0.3.0. Upgrade your dependency to 0.3.0 or later.
What is the CVSS score of CVE-2023-5572?
CVE-2023-5572 has a CVSS v3.1 base score of 10.0 (CRITICAL) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2023-5572?
CVE-2023-5572 is classified under CWE-918: Server-Side Request Forgery (SSRF) (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.).
How can I check npm dependencies for CVE-2023-5572?
Run the dependency tree command: 'npm ls @vrite/sdk'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}