Security Digest · Vulnerability record

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

Locutus brings stdlibs of other programming languages to JavaScript for educational purposes.

CVSS 9.8 Critical EPSS 0.9% · p58

Should you act?

Critical and remotely reachable

No known exploitation yet, but it is network-reachable without credentials. This signal is computed from CISA KEV, EPSS and CVSS data; it is not an editorial verdict.

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

From the GitHub advisory

Summary

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 (GHSA-fp25-p6mj-qqg6) which was calluserfuncarray using eval() in v2.x. This finding affects createfunction using new Function() in v3.x.

Root Cause

src/php/funchand/createfunction.ts:17:

Weakness type: CWE-94, CWE-88.

Product: locutus (npm) · Assigned by: GitHub_M · Published: 2026-03-12

Affected and fixed versions

EcosystemPackageVulnerableFirst fixed
npmlocutus<= 3.0.133.0.14
VendorProductAffected versions (per CVE record)
locutusjslocutus< 3.0.14

Severity scores

Scored byCVSSScoreVector
GitHub_M3.19.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
redhat-SADP3.17.5 HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHub3.19.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Attack vector: network (remotely reachable)
  • Attack complexity: low
  • Privileges required: none (no login)
  • User interaction: none
  • Scope: unchanged

CVSS measures how bad a flaw is if exploited, not how likely exploitation is. Read it next to the exploitation data below.

Exploitation and urgency

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

Timeline

  • — CVE record published by GitHub_M
  • — GitHub-reviewed advisory GHSA-vh9h-29pq-r5m8 published (critical)
  • — CVE record last updated

Sources and references

Original sources first. Version and fix details should always be confirmed against the vendor or project advisory.

Vulnerability records

  1. GitHub Advisory GHSA-vh9h-29pq-r5m8 github.com
  2. CVE.org record CVE-2026-32304 cve.org
  3. NVD entry CVE-2026-32304 nvd.nist.gov

Other references from the CVE record and advisory

  1. github.com github.com
  2. github.com github.com
  3. access.redhat.com access.redhat.com
  4. RHBZ#2447200 bugzilla.redhat.com
  5. security.access.redhat.com security.access.redhat.com

Critical npm advisories · Today’s Security Digest