CVE-2026-32304
CRITICAL 9.8CVSS 3.1Locutus vulnerable to 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.
- Published
- 13 Mar 2026
- Last modified
- 15 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-88CWE-94
- Also known as
- GHSA-vh9h-29pq-r5m8
- Sources
- NVDJSONOSV GHSA-vh9h-29pq-r5m8JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | locutus | locutuscpe:2.3:a:locutus:locutus:*:*:*:*:*:node.js:*:* |
< 3.0.14 | 3.0.14 |
| OSV | npm | locutus | < 3.0.14 | 3.0.14 |
References
- https://github.com/locutusjs/locutus/releases/tag/v3.0.14 · Product, Release Notes, WEB
- https://github.com/locutusjs/locutus/security/advisories/GHSA-vh9h-29pq-r5m8 · Exploit, Mitigation, Patch, Vendor Advisory, WEB
- https://access.redhat.com/security/cve/CVE-2026-32304
- https://bugzilla.redhat.com/show_bug.cgi?id=2447200
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32304.json
- https://nvd.nist.gov/vuln/detail/CVE-2026-32304 · ADVISORY
- https://github.com/locutusjs/locutus · PACKAGE
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 13 Mar 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 13 Mar 2026)