---
title: "CVE-2026-32304: Locutus vulnerable to RCE via unsanitized input in create_function()"
url: https://erroneo.us/security/cve/CVE-2026-32304/
description: "CVE-2026-32304 (locutus (npm)): Locutus brings stdlibs of other programming languages to JavaScript for educational purposes. Prior to 3.0.14, the…"
type: vulnerability-record
section: "Security Digest"
date_published: 2026-03-12
date_modified: 2026-07-15
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2026-32304"
kev: false
cvss: 9.8
epss: 0.00856
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2026-32304: Locutus vulnerable to RCE via unsanitized input in create_function()

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 0.9% , percentile 58: FIRST’s model estimates a 0.9% chance of exploitation activity in the next 30 days, higher than 58% of all scored CVEs (moderate). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes locutus (npm) <= 3.0.13, fixed in 3.0.14 . Check your lockfile, including transitive dependencies.

## What it is

Locutus brings stdlibs of other programming languages to JavaScript for educational purposes. Prior to 3.0.14, the createfunction(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 calluserfuncarray using eval() in v2.x. This finding affects createfunction using new Function() in v3.x. This vulnerability is fixed in 3.0.14.

## Affected packages

- npm `locutus` <= 3.0.13 → fixed: 3.0.14

## Affected products (CVE record)

- locutusjs locutus: < 3.0.14

## Severity

- GitHub_M CVSS 3.1: 9.8 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- redhat-SADP CVSS 3.1: 7.5 `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub CVSS 3.1: 9.8 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable yes , technical impact total .
- FIRST EPSS (model of 2026-10-21): 0.86% probability of exploitation activity in the next 30 days; percentile 58.

## Sources

- [GitHub Advisory GHSA-vh9h-29pq-r5m8](https://github.com/advisories/GHSA-vh9h-29pq-r5m8)
- [CVE.org record CVE-2026-32304](https://www.cve.org/CVERecord?id=CVE-2026-32304)
- [NVD entry CVE-2026-32304](https://nvd.nist.gov/vuln/detail/CVE-2026-32304)
- [github.com](https://github.com/locutusjs/locutus/security/advisories/GHSA-vh9h-29pq-r5m8)
- [github.com](https://github.com/locutusjs/locutus/releases/tag/v3.0.14)
- [access.redhat.com](https://access.redhat.com/security/cve/CVE-2026-32304)
- [RHBZ#2447200](https://bugzilla.redhat.com/show_bug.cgi?id=2447200)
- [security.access.redhat.com](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32304.json)

---
Source page: https://erroneo.us/security/cve/CVE-2026-32304/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
