CVE-2026-25521 Locutus is vulnerable to Prototype Pollution
CriticalCVSS 9.4
EPSS 0.31%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- Red Hat
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.
Upgrade path
4 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| locutus | >= 2.0.12, < 2.0.39 | 2.0.39 | Fixed |
| npm locutus(npm) | >= 2.0.12, < 2.0.39 | 2.0.39 | Fixed |
| locutusjs locutus | = >= 2.0.12, < 2.0.39 | No fix listed | Versions listed |
| redhat logging | = 5 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| locutusjs locutus | = >= 2.0.12, < 2.0.39 | No fix listed |
| redhat logging | = 5 | No fix listed |
| npm locutus(npm) | >= 2.0.12, < 2.0.39 | 2.0.39 |
| locutus | >= 2.0.12, < 2.0.39 | 2.0.39 |
References
- https://github.com/locutusjs/locutus/security/advisories/GHSA-rxrv-835q-v5mh exploit vendor-advisory
- https://github.com/locutusjs/locutus/commit/042af9ca7fde2ff599120783e720a17f335bb01c patch
- Red Hat CVE page mitigation vdb-entry vendor-advisory
- RHBZ#2436950 issue-tracking
- security.access.redhat.com
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- www.cve.org
- github.com product