Vulnerabilities in pkg:npm/querystringify

PACKAGE
Advisory Summary

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

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/querystringify

1 Known Advisory Record(s)

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

CVE Identifier N/A
GHSA Identifier GHSA-hxcm-v35h-mg2x
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Affected Product Querystringify
Package Ecosystem npm
Published Date
Last Updated

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.

querystringify fixed: 2.0.0
npm install querystringify@2.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 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

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.

GHSA-hxcm-v35h-mg2x Affected Querystringify Versions

1 component(s)
Fixed Versions:
2.0.0
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?
GHSA-hxcm-v35h-mg2x is a security vulnerability in Querystringify involving Prototype Pollution in querystringify under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution').
Which Querystringify versions are affected?
Affected versions include releases prior to 2.0.0 across affected packages: querystringify.
What version fixes GHSA-hxcm-v35h-mg2x?
Upgrading to 2.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is querystringify affected?
Yes, querystringify is affected in releases prior to 2.0.0. Upgrade your dependency to 2.0.0 or later.
What CWE is associated with GHSA-hxcm-v35h-mg2x?
GHSA-hxcm-v35h-mg2x is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') (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.).
How can I check npm dependencies for GHSA-hxcm-v35h-mg2x?
Run the dependency tree command: 'npm ls querystringify'. 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-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
  }
}