CVE-2026-32304: Locutus: RCE via unsanitized input in create_function()
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.
Security readout for executives and security teams
Plain-English summary
Locutus versions before 3.0.14 can execute attacker-controlled JavaScript if an application feeds untrusted input into create_function(). For executives, this is critical because successful abuse can compromise confidentiality, integrity, and availability. Exposure depends on whether the vulnerable library and function are reachable in your application.
Executive priority
Prioritize remediation for internet-facing or multi-tenant JavaScript services using locutus. The severity is critical, but urgency should be driven by confirmed dependency presence and whether untrusted input reaches create_function().
Technical view
create_function(args, code) passed both arguments directly into JavaScript's Function constructor without sanitization. The source bundle maps this to CWE-88 and CWE-94 with CVSS 9.8. The issue is fixed in Locutus 3.0.14 and is distinct from CVE-2026-29091 affecting call_user_func_array in v2.x.
Likely exposure
Applications using locutus before 3.0.14 are potentially exposed, especially where create_function() receives user-controlled or externally supplied values. Transitive dependency use should also be checked. The bundle does not prove exposure for any specific downstream product.
Exploitation context
The CVSS vector indicates network-reachable, low-complexity exploitation requiring no privileges or user interaction. However, the bundle marks KEV false and provides no cited evidence of active exploitation. Treat exploit status as unconfirmed, not actively exploited.
Researcher notes
Focus analysis on the v3.x create_function() path using new Function(). Do not conflate this with CVE-2026-29091, which the bundle says involved call_user_func_array and eval() in v2.x. Public sources identify the fix release but not active exploitation.
Mitigation direction
Upgrade locutus to version 3.0.14 or later.
Update lockfiles and rebuild artifacts that include locutus.
Remove or isolate create_function() use where possible.
Do not pass untrusted input into dynamic code-generation APIs.
Check vendor advisory and Red Hat VEX guidance for environment-specific status.
Validation and detection
Inventory direct and transitive locutus versions in applications and SBOMs.
Confirm deployed artifacts use locutus 3.0.14 or later.
Search code for create_function() imports or calls.
Trace whether request, API, or stored data can reach create_function().
Confirm dependency scanners flag and clear CVE-2026-32304 after upgrade.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-88: Command execution behavior lookup
Command injection weaknesses can lead defenders to review execution techniques and command interpreter telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Code execution and unsafe deserialization weaknesses often justify reviewing execution behavior and process telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
2CVSS vectors
5Timeline events
2ADP providers
6Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: pocAutomatable: yesTechnical Impact: total
CVSS vector scores
2 official scores
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.