GHSA-crvj-3gj9-gm2p: Qs High Severity Vulnerability That Affects Vulnerability

HIGH
Published
Advisory Summary

GHSA-crvj-3gj9-gm2p is a HIGH high severity vulnerability that affects vulnerability (General Security Weakness) affecting Qs libraries in the npm ecosystem. The issue involves high severity vulnerability that affects qs. Remediation is available by upgrading affected packages to version 1.0.0.

GHSA-crvj-3gj9-gm2p at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-crvj-3gj9-gm2p
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Qs
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-crvj-3gj9-gm2p

To remediate this vulnerability, upgrade all affected Qs dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

qs fixed: 1.0.0
npm install qs@1.0.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 qs

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-crvj-3gj9-gm2p, inspect your project dependencies using npm:

npm ls qs

Analyze the terminal output to locate any version of Qs in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.0), your application is affected.

Note: The npm ls qs 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 General Security Weakness. In Qs, 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

Withdrawn, accidental duplicate publish. The qs module before 1.0.0 in Node.js does not call the compact function for array data, which allows remote attackers to cause a denial of service (memory consumption) by using a large index value to create a sparse array.

GHSA-crvj-3gj9-gm2p Affected Qs Versions

1 component(s)
Fixed Versions:
1.0.0
Product / Package Ecosystem Affected Versions Fixed Version
qs
npm
< 1.0.0
1.0.0

References

Frequently Asked Questions

What is GHSA-crvj-3gj9-gm2p?
GHSA-crvj-3gj9-gm2p is a security vulnerability in Qs involving High severity vulnerability that affects qs under General Security Weakness.
Which Qs versions are affected?
Affected versions include releases prior to 1.0.0 across affected packages: qs.
What version fixes GHSA-crvj-3gj9-gm2p?
Upgrading to 1.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is qs affected?
Yes, qs is affected in releases prior to 1.0.0. Upgrade your dependency to 1.0.0 or later.
What CWE is associated with GHSA-crvj-3gj9-gm2p?
GHSA-crvj-3gj9-gm2p is classified under General Security Weakness.
How can I check npm dependencies for GHSA-crvj-3gj9-gm2p?
Run the dependency tree command: 'npm ls qs'. 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-crvj-3gj9-gm2p",
  "modified" : "2020-06-16T21:43:40Z",
  "published" : "2018-10-09T00:44:29Z",
  "withdrawn" : "2020-06-16T21:32:53Z",
  "aliases" : [ ],
  "summary" : "High severity vulnerability that affects qs",
  "details" : "Withdrawn, accidental duplicate publish.\n\nThe qs module before 1.0.0 in Node.js does not call the compact function for array data, which allows remote attackers to cause a denial of service (memory consumption) by using a large index value to create a sparse array.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "qs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2014-7191"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-crvj-3gj9-gm2p"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:32:53Z",
    "nvd_published_at" : null
  }
}