RCE in Locutus
CVE-2026-32304
Locutus brings stdlibs of other programming languages to JavaScript for educational purposes. Prior to 3.0.14, the create_function(args, code) function passes both parameters directly to the Function constructor without any sanitization, allowing arbitrary code execution. This is distinct from CVE-2026-29091 which was call_user_func_array using eval() in v2.x. This finding affects create_function using new Function() in v3.x. This vulnerability is fixed in 3.0.14.
Vulnerability class: RCE (Remote Code Execution)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.008 (55.7th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 56th percentile — 55.7% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.006 · newest: 0.008 · change: +0.003
Affected products
- Locutus
- Locutusjs Locutus — versions < 3.0.14
Weakness classification (CWE)
References
- github.com/locutusjs/locutus/security/advisories/GHSA-vh9h-29pq-r5m8 (Exploit, Patch, Mitigation, Vendor Advisory)
- github.com/locutusjs/locutus/releases/tag/v3.0.14 (Product, Release Notes)
- 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
- 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
- 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
Frequently asked questions
- What is CVE-2026-32304?
- CVE-2026-32304 is a critical-severity vulnerability in Locutus, classified under Code Injection. CVSS score: 9.8/10. Published 2026-03-13.
- How severe is CVE-2026-32304?
- Critical severity. CVSS v3 base score is 9.8 out of 10.