Prototype Pollution in Locutus
CVE-2026-25521
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.
Vulnerability class: Prototype Pollution
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.003, 24.7th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Locutus
- Locutusjs Locutus — versions >= 2.0.12, < 2.0.39
Weakness classification (CWE)
References
- https://github.com/locutusjs/locutus/security/advisories/GHSA-rxrv-835q-v5mh (Exploit, Vendor Advisory)
- https://github.com/locutusjs/locutus/commit/042af9ca7fde2ff599120783e720a17f335bb01c (Patch)
- access.redhat.com/security/cve/CVE-2026-25521
- bugzilla.redhat.com/show_bug.cgi
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25521.json