CVE-2026-33994

Locutus Prototype Pollution due to incomplete fix for CVE-2026-25521

Published Mar 27, 2026 CVSS 4.0 · 6.3 Medium EPSS < 1% KEV · Not listed
Description
Locutus brings stdlibs of other programming languages to JavaScript for educational purposes. Starting in version 2.0.39 and prior to version 3.0.25, 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. Version 3.0.25 contains an updated fix.

Analysis

AI-generated

Technical impact

A flaw in the parse_str function of the Locutus library allows an attacker to overwrite Object.prototype by hijacking RegExp.prototype.test. The vulnerability arises because the guard that replaces String.prototype.includes() with RegExp.prototype.test() is itself writable and can be overridden, enabling the prototype pollution guard to be bypassed. This flaw permits an attacker to inject arbitrary properties into all Object instances, potentially corrupting library behavior and affecting any code that relies on Object.prototype values. Such pollution can lead to logic errors, degrade data integrity, and provide a foothold for more serious attacks if combined with other weaknesses.

Affected Systems

The issue affects the Locutus JavaScript library used in Node.js environments. Versions from 2.0.39 up to (but not including) 3.0.25 are vulnerable. Affected users run Locutus 2.x or the early 3.0.x releases without the update supplied in version 3.0.25.

Risk and Exploitability

The CVSS score of 6.3 places the vulnerability in the medium severity range. The EPSS score is below 1% and the vulnerability is not listed in CISA's KEV catalog, indicating a low exploitation likelihood. The attack vector is inferred to be via user-controlled input to parse_str, such as a crafted query string, after an attacker has been able to override RegExp.prototype.test. While the description does not explicitly state remote vs local scope, the nature of prototype pollution often enables persistence of exploitation across user sessions, making the impact potentially significant if the application trusts unchecked input.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Locutus to version 3.0.25 or later which contains the updated patch

Generated by OpenCVE AI on April 2, 2026 at 04:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-vc8f-x9pp-wf5p Locutus Prototype Pollution due to incomplete fix for CVE-2026-25521
History
Type Values Removed Values Added
CPEs cpe:2.3:a:locutus:locutus:*:*:*:*:*:node.js:*:*
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Weaknesses CWE-915
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N'}

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Locutus
Locutus locutus
Vendors & Products Locutus
Locutus locutus
Type Values Removed Values Added
Description Locutus brings stdlibs of other programming languages to JavaScript for educational purposes. Starting in version 2.0.39 and prior to version 3.0.25, 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. Version 3.0.25 contains an updated fix.
Title Locutus Prototype Pollution due to incomplete fix for CVE-2026-25521
Weaknesses CWE-1321
References
Metrics cvssV4_0

{'score': 6.3, 'vector': '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'}

Weaknesses
  • CWE-1321

    Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

  • CWE-915

    Improperly Controlled Modification of Dynamically-Determined Object Attributes

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Apr 1, 2026, 1:45 PM
Reserved
Mar 24, 2026, 10:20 PM
Status
Modified
Published
Mar 27, 2026, 11:17 PM
Modified
Oct 26, 2026, 10:10 PM
Severity
Moderate
Public date
Mar 27, 2026, 10:15 PM