CVE-2026-32304: Locutus - Remote Code Execution
- Cve: CVE-2026-32304
- Name: Locutus - Remote Code Execution
- 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.
- Impact: Attackers can execute arbitrary code remotely, potentially compromising the system.
- Remediation: Upgrade to version 3.0.14 or later.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00647
- Epss percentile: 0.51755
- Assignee: [email protected]
- Published at: 2026-03-13T19:54:41Z
- Age in days: 256
- Modified at: 2026-07-15T02:19:58Z
- Patch available: yes
- Public exploits total: 1
- References total: 5
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-32304
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-94 | Improper Control of Generation of Code |
| CWE-88 | Improper Neutralization of Argument Delimiters in a Command |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/locutusjs/locutus/security/advisories/GHSA-vh9h-29pq-r5m8 | nvd | 2026-03-13 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| locutus:locutus | < 3.0.14 | no | nvd | /v1/products/locutus/locutus |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| locutusjs/locutus | package, releases, security_advisory | yes | /v1/repositories/locutusjs/locutus |
Index
- Repositories: 8
- Repositories high signal: 6
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-03-13
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts