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

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.54%, higher than 46% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-12T21:24:51.730Z
- Modified: 2026-07-15T02:19:58.393Z
- Also known as: GHSA-vh9h-29pq-r5m8
- Weaknesses: CWE-88, CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- locutusjs locutus: < 3.0.14
- openshift-logging/elasticsearch6-rhel9: no versions given
- openshift-logging/elasticsearch-operator-bundle: no versions given
- openshift-logging/elasticsearch-proxy-rhel9: no versions given
- openshift-logging/elasticsearch-rhel9-operator: no versions given
- openshift-logging/kibana6-rhel8: no versions given
- openshift-logging/logging-curator5-rhel9: no versions given
- locutus (npm): before 3.0.14
- locutus locutus: before 3.0.14

## Every score

- GitHub_M: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- redhat-SADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/locutusjs/locutus/security/advisories/GHSA-vh9h-29pq-r5m8> (exploit, mitigation, patch, vendor-advisory, web)
- <https://github.com/locutusjs/locutus/releases/tag/v3.0.14> (product, release-notes, web)
- <https://access.redhat.com/security/cve/CVE-2026-32304> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2447200> (issue-tracking)
- <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)

## Sources

- CVE List: [CVE-2026-32304](https://www.cve.org/CVERecord?id=CVE-2026-32304), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-vh9h-29pq-r5m8](https://github.com/advisories/GHSA-vh9h-29pq-r5m8), CC-BY-4.0, modified 2026-03-16
- NVD: [CVE-2026-32304](https://nvd.nist.gov/vuln/detail/CVE-2026-32304), Public domain, modified 2026-07-15

---

Page: https://cve.day/CVE-2026-32304 · Whole record: https://cve.day/CVE-2026-32304.json · Rebuilt by cve.day 2026-11-25T22:59:15.890Z
