Skip to main content

query-string-parser EUVDEUVD-2025-209730

| CVE-2025-63704 CRITICAL
Improperly Controlled Modification of Object Prototype Attributes (Prototype Pollution) (CWE-1321)
2026-05-07 cve@mitre.org GHSA-587p-w43q-4hjx
9.8
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send crafted HTTP request with prototype pollution payload
  2. Delivery
    query-string-parser merges __proto__ to Object.prototype
  3. Exploit
    Polluted properties propagate to all application objects
  4. Execution
    Application logic consumes polluted property in security check
  5. Persist
    Bypass authentication/authorization controls
  6. Impact
    Execute privileged operations or arbitrary code

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V3 - Web Frontend Security Prototype pollution prevention
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires target application specifically using the query-string-parser NPM package version 1.0.0 (not commonly deployed - package has limited adoption per npm download metrics). No special server configuration or features required beyond standard HTTP query parameter processing. Application must invoke query-string-parser to parse user-controlled query strings and subsequently use the parsed object properties in security-sensitive operations or code execution contexts for meaningful impact. Prototype pollution itself succeeds against default Node.js configurations but exploitable impact depends on downstream code paths: applications only reading polluted values may experience logic bypasses, while those passing polluted objects to template engines, eval(), or child process spawning enable remote code execution. Does NOT limit exploitation: no authentication required (PR:N), no user interaction needed (UI:N), remotely accessible via any network-exposed HTTP endpoint (AV:N). Defensive mitigations like frozen prototypes or --disable-proto Node.js flag prevent exploitation even when vulnerable package version is present.

Impact

CVSS 9.8 critical rating driven by network attack vector (AV:N), low complexity (AC:L), no privileges required (PR:N), and high impact across confidentiality, integrity, and availability creates initial appearance of severe risk. However, multiple signals indicate substantially lower real-world priority. EPSS 0.02% exploitation probability places this in the 4th percentile, suggesting security researchers and attackers have not prioritized exploitation despite public POC availability since January 2025. CISA SSVC confirms 'exploitation: none' with 'automatable: yes' - theoretically easy to exploit but not observed in practice. No CISA KEV listing despite being public for months. Critical limiting factors: exploitation requires the vulnerable application to actually use query-string-parser 1.0.0 (low download popularity per npm registry), successful exploitation depends on how parsed objects are subsequently used (many prototype pollution instances have no exploitable impact), and Node.js applications increasingly deploy prototype pollution mitigations like --disable-proto or Object.freeze(Object.prototype). Real risk is concentrated in legacy Node.js applications using this specific low-adoption parser without prototype hardening. The stark contrast between CVSS 9.8 and EPSS 4th percentile exemplifies why contextual signals matter more than base scores for prioritization.

Exploit ScenarioDerived

Attacker crafts malicious URL query string containing prototype pollution payloads such as '?__proto__[isAdmin]=true&__proto__[role]=administrator' and sends it to the vulnerable Node.js application via HTTP GET request. The query-string-parser 1.0.0 package parses this input and merges the __proto__ properties directly into Object.prototype without sanitization. Subsequent application code checking user privileges via constructs like if (user.isAdmin) now evaluates to true for all user objects due to the polluted prototype chain. Attacker achieves privilege escalation to administrative access, enabling unauthorized data access, configuration changes, or remote code execution if polluted properties are later consumed by eval(), child_process.exec(), or other dangerous sinks. Publicly available proof-of-concept on GitHub demonstrates the attack vector.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 09, 2026

Prototype pollution in query-string-parser 1.0.0 enables remote unauthenticated attackers to inject malicious properties into JavaScript object prototypes via crafted query parameters, achieving arbitrary code execution, privilege escalation, or denial of service in Node.js applications. CVSS 9.8 critical severity with network attack vector and no authentication required. EPSS score of 0.02% (4th percentile) indicates low observed exploitation probability despite critical rating. Publicly available proof-of-concept exists (GitHub Gist), but no CISA KEV listing confirms active exploitation. SSVC framework rates this as automatable with total technical impact but currently unexploited, suggesting opportunistic future risk rather than immediate widespread targeting.

RemediationAI

No vendor-released patch identified at time of analysis - the query-string-parser package appears unmaintained with last release at version 1.0.0 and no activity on the GitHub repository issue tracker beyond the vulnerability report filed in January 2025. Immediate remediation requires replacing query-string-parser with maintained alternatives such as qs (npm package with 200M+ weekly downloads, actively maintained, includes prototype pollution protections) or the built-in URLSearchParams API available in Node.js 10+. Migration example: replace require('query-string-parser') with const qs = require('qs'); qs.parse(queryString, {allowPrototypes: false}). For applications unable to immediately migrate, implement compensating controls: (1) freeze Object.prototype at application startup using Object.freeze(Object.prototype) to prevent pollution (breaks some libraries expecting mutable prototypes), (2) launch Node.js with --disable-proto=delete flag to remove __proto__ accessor (requires Node.js 12.17+), or (3) add input validation to reject query parameters containing '__proto__', 'constructor', or 'prototype' keys before parsing (bypassable via advanced encoding techniques). All compensating controls have compatibility trade-offs; regression testing is mandatory. Dependency scanning tools should flag this package for removal.

Affected VersionsENISA

n/a n/a

Affected Packages

npm query-string-parser no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability affects query-string-parser (note: package name differs from CVE description which states 'query-parser-string'), an NPM package for parsing URL query strings into JavaScript objects. Classified as CWE-1321 (Improperly Controlled Modification of Object Prototype Attributes, commonly known as Prototype Pollution), this flaw arises when user-controlled query parameters containing properties like '__proto__', 'constructor', or 'prototype' are merged directly into newly created objects without sanitization. In JavaScript's prototype-based inheritance model, polluting Object.prototype affects all objects in the application, enabling attackers to override methods, inject properties into downstream objects, bypass security checks, or trigger code paths leading to remote code execution when polluted properties are later used in eval(), require(), or other dangerous operations. The Node.js ecosystem is particularly vulnerable to this class of attack due to widespread use of object merging in middleware and parsers.

Know when Prototype Pollution gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mitre) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Primary rating from Vendor (mitre) · only source for this CVE.

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
CVSS changed
May 08, 2026 - 22:22 NVD
9.8 (CRITICAL)
CVE Published
May 07, 2026 - 16:16 nvd
UNKNOWN (no severity yet)
CVE Published
May 07, 2026 - 16:16 nvd
CRITICAL 9.8

DescriptionCVE.org

NPM package query-parser-string 1.0.0 is vulnerable to Prototype Pollution. The package does not properly sanitize user supplied query parameters and merges them to the newly created object.

Executive ViewAI

Why It Matters

CVE-2025-63704 is a critical prototype pollution vulnerability in query-string-parser 1.0.0 that allows unauthenticated remote attackers to execute arbitrary code in Node.js applications through malicious query parameters. Any organization using this parser in production faces immediate risk of data breach, service disruption, or system compromise, with no vendor patch currently available to remediate the threat.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable or restrict external query parameter processing where functionally possible; (2) Implement strict input validation and sanitization on all query parameters before parsing; (3) Deploy Web Application Firewall rules to detect and block prototype pollution payloads (e.g., __proto__, constructor, prototype patterns); (4) Run applications with reduced privilege and in isolated containers to limit code execution impact; (5) Immediate dependency replacement with patched alternative library is strongly preferred over runtime controls.

Threat Intelligence Overview

EPSS Score
0.0%
Top 96% exploitable
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2026-34621 HIGH POC
8.6 Apr 11

Prototype pollution in Adobe Acrobat Reader versions 24.001.30356, 26.001.21367 and earlier enables arbitrary code execu

CVE-2021-23450 CRITICAL POC
9.8 Dec 17

All versions of package dojo are vulnerable to Prototype Pollution via the setObject function. Rated critical severity (

CVE-2024-56059 CRITICAL
9.8 Dec 18

Prototype pollution in the farinspace Partners WordPress plugin (versions up to and including 0.2.0) enables remote unau

CVE-2021-23383 CRITICAL POC
9.8 May 04

The package handlebars before 4.7.7 are vulnerable to Prototype Pollution when selecting certain compiling options to co

CVE-2020-7788 CRITICAL POC
9.8 Dec 11

This affects the package ini before 1.3.6. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitabl

CVE-2020-28271 CRITICAL POC
9.8 Nov 12

Prototype pollution vulnerability in 'deephas' versions 1.0.0 through 1.0.5 allows attacker to cause a denial of service

CVE-2023-38894 CRITICAL POC
9.8 Aug 16

A Prototype Pollution issue in Cronvel Tree-kit v.0.7.4 and before allows a remote attacker to execute arbitrary code vi

CVE-2024-24292 CRITICAL POC
9.8 Mar 28

A Prototype Pollution issue in Aliconnect /sdk v.0.0.6 allows an attacker to execute arbitrary code via the aim function

CVE-2023-26121 CRITICAL POC
10.0 Apr 11

All versions of the package safe-eval are vulnerable to Prototype Pollution via the safeEval function, due to improper s

CVE-2021-23449 CRITICAL POC
10.0 Oct 18

This affects the package vm2 before 3.9.4 via a Prototype Pollution attack vector, which can lead to execution of arbitr

CVE-2024-39011 CRITICAL POC
9.8 Jul 30

Prototype Pollution in chargeover redoc v2.0.9-rc.69 allows attackers to execute arbitrary code or cause a Denial of Ser

CVE-2024-38988 CRITICAL POC
9.8 Mar 28

alizeait unflatto <= 1.0.2 was discovered to contain a prototype pollution via the method exports.unflatto at /dist/inde

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy