CVE-2026-32304
Last modified
CVE-2026-32304 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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. EPSS estimates a 0.55% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Locutus | Locutus | < 3.0.14 |
References
- https://github.com/locutusjs/locutus/releases/tag/v3.0.14Product, Release Notes
- https://github.com/locutusjs/locutus/security/advisories/GHSA-vh9h-29pq-r5m8Exploit, Mitigation, Patch, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-32304?
How severe is CVE-2026-32304?
How do I fix CVE-2026-32304?
Are you affected by CVE-2026-32304?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
