Vulnerability details

CVE-2026-25521

locutusjs locutus

Locutus is vulnerable to Prototype Pollution

CVSS 4.0
9.4Critical

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.

CVSS scores

ScoreVersionSourceVector
9.4Critical 4.0 CVEProject cvelistV5 (CNA) (GitHub_M) CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
9.3Critical 3.1 CVEProject cvelistV5 (CNA) (redhat-SADP) CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Affected products

VendorProductVersionsSource
locutusjs locutus >= 2.0.12, < 2.0.39 CVEProject cvelistV5 (CNA)

References and advisories

5
Alerts for this product's next CVEsFollow the product to get new vulnerabilities on Telegram.

Details

Published
2026-02-05
Last updated
2026-07-15
State
Published
Assigner (CNA)
GitHub_M

Exploit prediction (EPSS)

0.31%
Probability of exploitation in 30 days
24.5%
Percentile (among all CVEs)

SSVC assessment (CISA)

Automatable
No
Exploitation
None
Technical impact
Total

Weaknesses (CWE)

  • CWE-1321
    Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
  • CWE-915
    Improperly Controlled Modification of Dynamically-Determined Object Attributes