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 trend (30 days)EPSS over the last 30 days for CVE-2026-32304: held from 0.006 to 0.008.

EPSS over last 30 days · oldest: 0.006 · newest: 0.008 · change: +0.003

Affected products

Weakness classification (CWE)

References

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.