Locutus: RCE via unsanitized input in create_function()
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 1 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-94.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| locutusjs | locutus | before 3.0.14 | 3.0.14 | Patch available | CNA |
| — | locutus (npm) | before 3.0.14 | 3.0.14 | Patch available | GHSA-vh9h-29pq-r5m8 |
- locutus Vendorlocutusjs Affected before 3.0.14 Fixed in 3.0.14 Patch available CNA
- locutus (npm) Vendor— Affected before 3.0.14 Fixed in 3.0.14 Patch available GHSA-vh9h-29pq-r5m8
Remediation
- Fix · CNA locutus (locutusjs) Fixed in 3.0.14
- Fix · GHSA-vh9h-29pq-r5m8 locutus (npm) Fixed in 3.0.14 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Logging Subsystem for Red Hat OpenShift | Affected | No fix planned: Will not fix |
Timeline
- 2026-10-02 Threatist record created from CVE-2026-32304
- 2026-10-03 Alias added: GHSA-vh9h-29pq-r5m8
- 2026-10-25 EPSS moved to the below the 50th percentile
- 2026-11-07 EPSS moved to the 50th–90th percentile
References
More locutusjs Locutus vulnerabilities
- TI-2026-26333 Locutus has Prototype Pollution via __proto__ Key Injection in unserialize() CVSS 4.0MEDIUM 6.9
- TI-2026-23234 Locutus: Remote Code Execution (RCE) in locutus call_user_func_array due to Code Injection CVSS 3.1HIGH 8.1
- TI-2026-26334 Locutus Prototype Pollution due to incomplete fix for CVE-2026-25521 CVSS 4.0MEDIUM 6.3
- TI-2020-06239 Prototype pollution in locutus CVSS 3.1CRITICAL 9.8
- TI-2026-20630 Locutus is vulnerable to Prototype Pollution CVSS 4.0CRITICAL 9.4
- TI-2021-06085 Regular expression denial of service (ReDoS) in locutus CVSS 3.1HIGH 7.5
Sources
- CVE-2026-32304 · CVE Program
- CVE-2026-32304 · NVD
- FIRST EPSS
- GHSA-vh9h-29pq-r5m8 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-32304 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences