Vulnerability · Published Feb 4, 2026 · Assigned by GitHub_M
CVE-2026-25521Locutus is vulnerable to Prototype Pollution
Critical 9.3
In plain English
A critical-severity prototype pollution in locutus from locutusjs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 24% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | locutus | 2.0.39 | GHSA-rxrv-835q-v5mh |
Affected products (as reported)
Weakness: CWE-1321, CWE-915 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
References
- https://github.com/locutusjs/locutus/security/advisories/GHSA-rxrv-835q-v5mh x_refsource_CONFIRM
- https://github.com/locutusjs/locutus/commit/042af9ca7fde2ff599120783e720a17f335bb01c x_refsource_MISC
- https://access.redhat.com/security/cve/CVE-2026-25521 vdb-entry, x_refsource_REDHAT
- RHBZ#2436950 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25521.json x_sadp-csaf-vex