CVE-2026-32304CRITICAL 9.8EPSS p41.8%

CVE-2026-32304CVE-2026-32304

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.

Scoring

CVSS 3.19.8 (CRITICAL)
VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS0.55% probability of exploitation · percentile 41.8% · 2026-06-18T12:00:27Z
Published2026-03-13
Last modified2026-03-19

Underlying weaknesses· 1

CWE-94

References

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

1

TypeTargetConfidenceTier
WeaknessImproper Control of Generation of Code ('Code Injection')cwe-940%live

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CVE
CVE-2026-29091
CVE
CVE-2026-25521
CVE
CVE-2026-33994
CVE
CVE-2026-33993
CVE
CVE-2025-55346
CVE
CVE-2026-31236
Sourced from NVD + FIRST.org EPSS. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.