Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-25521: CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') in locutusjs locutus

0
Critical
VulnerabilityCVE-2026-25521cvecve-2026-25521cwe-1321
Published: Wed Feb 04 2026 (02/04/2026, 21:20:32 UTC)
Source: CVE Database V5
Vendor/Project: locutusjs
Product: locutus

Description

Locutus brings stdlibs of other programming languages to JavaScript for educational purposes. In versions from 2.0.12 to before 2.0.39, a prototype pollution vulnerability exists in locutus. Despite a previous fix that attempted to mitigate prototype pollution by checking whether user input contained a forbidden key, it is still possible to pollute Object.prototype via a crafted input using String.prototype. This issue has been patched in version 2.0.39.

AI-Powered Analysis

AILast updated: 02/04/2026, 21:44:30 UTC

Technical Analysis

CVE-2026-25521 is a prototype pollution vulnerability classified under CWE-1321 affecting the locutus JavaScript library, which provides standard libraries from other programming languages for JavaScript usage primarily for educational purposes. The vulnerability exists in versions from 2.0.12 up to but not including 2.0.39. Despite a prior fix that attempted to block prototype pollution by filtering forbidden keys in user input, attackers can still exploit the vulnerability by crafting inputs that manipulate String.prototype, thereby polluting Object.prototype. Prototype pollution occurs when an attacker can inject or modify properties on the base Object prototype, which all JavaScript objects inherit from, potentially altering application logic, bypassing security controls, or causing application crashes. This vulnerability does not require authentication or user interaction, making it easier to exploit in environments where locutus is used to process untrusted input. The CVSS 4.0 base score is 9.4 (critical), reflecting high impact on confidentiality, integrity, and availability, with low attack complexity and no privileges required. Although no known exploits are currently reported in the wild, the severity and ease of exploitation make this a significant threat. The issue was publicly disclosed on February 4, 2026, and patched in locutus version 2.0.39. Organizations using affected versions should upgrade immediately and review any code that utilizes locutus functions to handle external input to prevent exploitation.

Potential Impact

For European organizations, the impact of this vulnerability can be substantial, especially for those relying on locutus in development environments, educational platforms, or production systems that process untrusted JavaScript inputs. Exploitation can lead to arbitrary code execution, data tampering, or denial of service by corrupting the prototype chain, which can compromise application logic and security controls. This can result in data breaches, service outages, and loss of trust. Since locutus is used to emulate standard libraries from other languages, the vulnerability could affect a wide range of applications that depend on it for cross-language functionality or educational purposes. The lack of authentication and user interaction requirements increases the risk of automated exploitation attempts. Additionally, the critical severity score indicates that the vulnerability could be leveraged in targeted attacks against European organizations, potentially impacting sectors such as finance, education, and technology where JavaScript usage is prevalent.

Mitigation Recommendations

The primary mitigation is to upgrade locutus to version 2.0.39 or later, where the vulnerability has been patched. Organizations should audit their codebases to identify any usage of locutus versions between 2.0.12 and 2.0.38, especially where user input is processed or passed to locutus functions. Implement strict input validation and sanitization to prevent malicious payloads from reaching vulnerable code paths. Employ runtime application self-protection (RASP) or Web Application Firewalls (WAFs) with rules designed to detect and block prototype pollution attack patterns. Conduct thorough testing after upgrading to ensure no residual vulnerabilities remain. Additionally, monitor security advisories for any emerging exploit code or related vulnerabilities. For development teams, educate about the risks of prototype pollution and encourage secure coding practices when handling JavaScript objects and third-party libraries.

Need more detailed analysis?Upgrade to Pro Console

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-02-02T18:21:42.487Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6983ba62f9fa50a62fae1db6

Added to database: 2/4/2026, 9:30:10 PM

Last enriched: 2/4/2026, 9:44:30 PM

Last updated: 2/7/2026, 3:15:29 AM

Views: 25

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats