GHSA-crvj-3gj9-gm2p: Qs High Severity Vulnerability That Affects Vulnerability
HIGHGHSA-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
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.
npm install qs@1.0.0
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
GHSA-crvj-3gj9-gm2p Affected Qs Versions
1 component(s)| 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?
Which Qs versions are affected?
What version fixes GHSA-crvj-3gj9-gm2p?
Is qs affected?
What CWE is associated with GHSA-crvj-3gj9-gm2p?
How can I check npm dependencies for GHSA-crvj-3gj9-gm2p?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}