Vulnerabilities in pkg:npm/querystringify
PACKAGEGHSA-hxcm-v35h-mg2x is a HIGH prototype pollution vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting Querystringify libraries in the npm ecosystem. The issue involves prototype pollution in querystringify. Remediation is available by upgrading affected packages to version 2.0.0.
pkg:npm/querystringify
Vulnerability advisories affecting package pkg:npm/querystringify. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-hxcm-v35h-mg2x | - | HIGH | Prototype Pollution in querystringify |
GHSA-hxcm-v35h-mg2x at a Glance
How to Fix GHSA-hxcm-v35h-mg2x
To remediate this vulnerability, upgrade all affected Querystringify 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 querystringify@2.0.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls querystringify
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-hxcm-v35h-mg2x, inspect your project dependencies using npm:
npm ls querystringify
Analyze the terminal output to locate any version of Querystringify in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.0), your application is affected.
Note: The npm ls querystringify 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-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution'), where the product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype. In Querystringify, 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-hxcm-v35h-mg2x Affected Querystringify Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
querystringify
|
npm |
< 2.0.0
|
2.0.0
|
References
Frequently Asked Questions
What is GHSA-hxcm-v35h-mg2x?
Which Querystringify versions are affected?
What version fixes GHSA-hxcm-v35h-mg2x?
Is querystringify affected?
What CWE is associated with GHSA-hxcm-v35h-mg2x?
How can I check npm dependencies for GHSA-hxcm-v35h-mg2x?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hxcm-v35h-mg2x",
"modified" : "2023-11-29T22:16:43Z",
"published" : "2019-06-07T21:12:50Z",
"aliases" : [ ],
"summary" : "Prototype Pollution in querystringify",
"details" : "A vulnerability was found in querystringify before 2.0.0. It's possible to override built-in properties of the resulting query string object if a malicious string is inserted in the query string.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "querystringify"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/unshiftio/querystringify/pull/19"
}, {
"type" : "WEB",
"url" : "https://github.com/unshiftio/querystringify/commit/422eb4f6c7c28ee5f100dcc64177d3b68bb2b080"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1321" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2019-06-07T21:11:35Z",
"nvd_published_at" : null
}
}