Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A03:2021 - Injection
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. |
| Impact | This vulnerability carries moderate to high real-world risk despite the chaining requirement. The CVSS vector is unavailable, preventing formal score calculation, but the attack vector is network-accessible (AV:N) with low complexity (AC:L) and requires no authentication or user interaction. EPSS data is not provided, but public exploit code is available (confirmed via proof-of-concept in the description), which significantly increases exploitation probability. The vulnerability is not listed in CISA KEV, indicating no confirmed active exploitation at time of analysis; however, proof-of-concept availability lowers the barrier to weaponization. The technical impact is severe: successful exploitation leads to arbitrary property injection into |
| Exploit ScenarioDerived | An attacker identifies a Node.js web application using locutus version 3.0.24 alongside another npm package with a prototype pollution vulnerability (e.g., in query parameter parsing or JSON deserialization). The attacker first exploits the secondary package to override |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 27, 2026
Prototype pollution in locutus npm package version 2.0.39 through 3.0.24 allows remote attackers to bypass Object.prototype pollution guards via a crafted query string passed to the parse_str function, enabling authentication bypass, denial of service, or remote code execution in chained attack scenarios where RegExp.prototype.test has been previously compromised. Publicly available exploit code exists demonstrating the vulnerability; vendor-released patch available in version 3.0.25.
RemediationAI
Upgrade locutus to version 3.0.25 or later immediately. This version implements a hardened fix that no longer relies on prototype methods for guard logic; instead, it rejects dangerous key paths during parsed-segment assignment, preventing prototype pollution even if RegExp.prototype.test has been previously compromised. For applications unable to upgrade immediately, implement network-level controls to restrict untrusted input reaching parse_str functions, and audit the application's full dependency tree to identify and patch other prototype pollution gadgets that could be chained with this vulnerability. Additionally, enforce strict Content Security Policy headers and monitor for unexpected property mutations on Object.prototype in production environments. The official patch is available at https://github.com/locutusjs/locutus/commit/345a6211e1e6f939f96a7090bfeff642c9fcf9e4.
Affected VersionsENISA
Affected Packages
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 exists in the parse_str function (pkg:npm/locutus) which implements PHP-style query string parsing for Node.js applications. The affected code uses RegExp.prototype.test() to guard against prototype pollution by checking for dangerous keys (__proto__, constructor, prototype). This guard mechanism is bypassable because RegExp.prototype.test itself is a writable method on the prototype chain and can be overridden to return false, disabling the defense entirely. This represents an incomplete fix to CVE-2026-25521, which similarly used String.prototype.includes() (also hijackable). The root cause is classified under CWE-1321 (Improperly Controlled Modification of Object Prototype Attributes), indicating reliance on prototype methods rather than language-level operators (===) for security controls. The vulnerability requires a chaining scenario: an attacker must first locate a separate prototype pollution gadget in the application's dependency tree to compromise RegExp.prototype.test, then exploit parse_str with a malicious query string to complete the attack.
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
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N
Primary rating from Vendor (https://github.com/locutusjs/locutus).
CVSS VectorVendor: https://github.com/locutusjs/locutus
Lifecycle Timeline
2DescriptionCVE.org
Summary
A prototype pollution vulnerability exists in the parse_str function of the npm package locutus. An attacker can pollute Object.prototype by overriding RegExp.prototype.test and then passing a crafted query string to parse_str, bypassing the prototype pollution guard.
This vulnerability stems from an incomplete fix for CVE-2026-25521. The CVE-2026-25521 patch replaced the String.prototype.includes()-based guard with a RegExp.prototype.test()-based guard. However, RegExp.prototype.test is itself a writable prototype method that can be overridden, making the new guard bypassable in the same way as the original - trading one hijackable built-in for another.
Package
locutus (npm)
Affected versions
>= 2.0.39, <= 3.0.24
Tested and confirmed vulnerable on 2.0.39 and 3.0.24 (latest). Version 2.0.38 (pre-fix) uses a different guard (String.prototype.includes) and is not affected by this specific bypass.
---
Description
Details
The vulnerability resides in parse_str.js where the RegExp.prototype.test() function is used to check whether user-provided input contains forbidden keys:
if (/__proto__|constructor|prototype/.test(key)) {
break
}The previous guard (fixed in CVE-2026-25521) used String.prototype.includes():
if (key.includes('__proto__')) {
break
}The CVE-2026-25521 fix correctly identified that String.prototype.includes can be hijacked. However, the replacement guard using RegExp.prototype.test() suffers from the same class of weakness - RegExp.prototype.test is a writable method on the prototype chain and can be overridden to always return false, completely disabling the guard.
The robust fix is to use direct string comparison operators (=) in native control flow (for/if) instead of prototype methods like RegExp.prototype.test(), since = is a language-level operator that cannot be overridden.
PoC
Steps to reproduce
- Install locutus using
npm install locutus - Run the following code snippet:
const parse_str = require('locutus/php/strings/parse_str');
// Hijack RegExp.prototype.test (simulates a prior prototype pollution gadget)
const original = RegExp.prototype.test;
RegExp.prototype.test = function () { return false; };
// Payload
const result = {};
parse_str('__proto__[polluted]=yes', result);
// Check
RegExp.prototype.test = original;
console.log(({}).polluted); // 'yes' - prototype is pollutedExpected behavior
Prototype pollution should be prevented and ({}).polluted should print undefined.
undefinedActual behavior
Object.prototype is polluted. This is printed on the console:
yesImpact
This is a prototype pollution vulnerability with the same impact as CVE-2026-25521. The attack requires a chaining scenario - an attacker needs a separate prototype pollution gadget (e.g., from another npm package in the same application) to override RegExp.prototype.test before exploiting parse_str. This is realistic in Node.js applications that use multiple npm packages, where one package's vulnerability can disable another package's defenses.
Any application that processes attacker-controlled input using locutus/php/strings/parse_str may be affected. It could potentially lead to:
- Authentication bypass
- Denial of service
- Remote code execution (if polluted property is passed to sinks like
evalorchild_process)
Resources
- Original advisory: https://github.com/locutusjs/locutus/security/advisories/GHSA-rxrv-835q-v5mh
- Fix commit (incomplete): https://github.com/locutusjs/locutus/commit/042af9ca7fde2ff599120783e720a17f335bb01c
- Vulnerable file: https://github.com/locutusjs/locutus/blob/main/src/php/strings/parse_str.js#L77
Maintainer response
Thank you for the follow-up report. This issue was reproduced locally against locutus@3.0.24, confirming that the earlier parse_str guard was incomplete: if RegExp.prototype.test was already compromised, the guard could be bypassed and parse_str('__proto__[polluted]=yes', result) could still pollute Object.prototype.
This is now fixed on main and released in locutus@3.0.25.
Fix Shipped In
- PR: locutusjs/locutus#597
- Merge commit on
main:345a6211e1e6f939f96a7090bfeff642c9fcf9e4 - Release: v3.0.25
What the Fix Does
The new fix no longer relies on a regex-prototype guard for safety. Instead, src/php/strings/parse_str.ts now rejects dangerous key paths during parsed-segment assignment, so the sink itself is hardened even if RegExp.prototype.test has been tampered with beforehand.
Tested Repro Before the Fix
- Override
RegExp.prototype.testto always returnfalse - Call
parse_str('__proto__[polluted]=yes', result) - Observe
({}).polluted === 'yes'
Tested State After the Fix in 3.0.25
- Dangerous key paths are skipped during assignment
- The same chained repro no longer pollutes
Object.prototype - The regression is covered by
test/custom/parse_str-prototype-pollution.vitest.ts
---
The locutus team is treating this as a real package vulnerability with patched version 3.0.25. The vulnerable range should end at < 3.0.25.
Blast Radius
ecosystem impact- 1,022 npm packages depend on locutus (151 direct, 874 indirect)
Ecosystem-wide dependent count for version 2.0.39.
Executive ViewAI
CVE-2026-33994 presents moderate security risk, a prototype pollution vulnerability rated CVSS 6.3. Exploitation could compromise the security of affected deployments. A patch is available and should be applied during regular vulnerability management.
Apply vendor patch. If patching is delayed: restrict network access and enable monitoring.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
More in Prototype Pollution
View allPrototype pollution in Adobe Acrobat Reader versions 24.001.30356, 26.001.21367 and earlier enables arbitrary code execu
All versions of package dojo are vulnerable to Prototype Pollution via the setObject function. Rated critical severity (
Prototype pollution in the farinspace Partners WordPress plugin (versions up to and including 0.2.0) enables remote unau
The package handlebars before 4.7.7 are vulnerable to Prototype Pollution when selecting certain compiling options to co
This affects the package ini before 1.3.6. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitabl
Prototype pollution vulnerability in 'deephas' versions 1.0.0 through 1.0.5 allows attacker to cause a denial of service
A Prototype Pollution issue in Cronvel Tree-kit v.0.7.4 and before allows a remote attacker to execute arbitrary code vi
A Prototype Pollution issue in Aliconnect /sdk v.0.0.6 allows an attacker to execute arbitrary code via the aim function
All versions of the package safe-eval are vulnerable to Prototype Pollution via the safeEval function, due to improper s
This affects the package vm2 before 3.9.4 via a Prototype Pollution attack vector, which can lead to execution of arbitr
Prototype Pollution in chargeover redoc v2.0.9-rc.69 allows attackers to execute arbitrary code or cause a Denial of Ser
alizeait unflatto <= 1.0.2 was discovered to contain a prototype pollution via the method exports.unflatto at /dist/inde
EUVD-2026-16890
GHSA-vc8f-x9pp-wf5p
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB