CVE-2026-25521
EUVD-2026-534004.02.2026, 22:15
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.
Affected Products (NVD)
| Vendor | Product | Version |
|---|---|---|
| locutus | locutus | 2.0.12 ≤ 𝑥 < 2.0.39 |
𝑥
= Vulnerable software versions
Common Weakness Enumeration
- CWE-1321 - Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')The software 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.
- CWE-915 - Improperly Controlled Modification of Dynamically-Determined Object AttributesThe software receives input from an upstream component that specifies multiple attributes, properties, or fields that are to be initialized or updated in an object, but it does not properly control which attributes can be modified.
References