CVE-2023-5571: @vrite/sdk Improper Input Validation Vulnerability

MODERATE
Advisory Identifier: GHSA-44ff-9w4f-99w6
CVSS 6.5
CWE-20
Published
Advisory Summary

CVE-2023-5571 is a MODERATE (CVSS 6.5) improper input validation vulnerability (CWE-20: Improper Input Validation) affecting @vrite/sdk libraries in the npm ecosystem. The issue involves improper input validation in vriteio/vrite. Remediation is available by upgrading affected packages to version 0.3.0.

CVE-2023-5571 at a Glance

CVE Identifier CVE-2023-5571
GHSA Identifier GHSA-44ff-9w4f-99w6
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-20: Improper Input Validation
Affected Product @vrite/sdk
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 6.5

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:U/C:N/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2023-5571

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-5571, 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. 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

Improper Input Validation in GitHub repository vriteio/vrite prior to 0.3.0.

CVE-2023-5571 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-5571?
CVE-2023-5571 is a security vulnerability in @vrite/sdk involving Improper Input Validation in vriteio/vrite under CWE-20: Improper Input Validation.
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-5571?
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-5571?
CVE-2023-5571 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L.
What CWE is associated with CVE-2023-5571?
CVE-2023-5571 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check npm dependencies for CVE-2023-5571?
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-44ff-9w4f-99w6",
  "modified" : "2023-10-13T23:38:18Z",
  "published" : "2023-10-13T12:30:16Z",
  "aliases" : [ "CVE-2023-5571" ],
  "summary" : "Improper Input Validation in vriteio/vrite",
  "details" : "Improper Input Validation 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:U/C:N/I:L/A:L"
  } ],
  "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-5571"
  }, {
    "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/926ca25f-dd4a-40cf-8e6b-9d7b5938e95a"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-10-13T23:38:18Z",
    "nvd_published_at" : "2023-10-13T10:15:10Z"
  }
}