SecurityContext

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

IdName
CWE-94Improper Control of Generation of Code
CWE-88Improper Neutralization of Argument Delimiters in a Command

Public exploits

UrlSourceAdded date
https://github.com/locutusjs/locutus/security/advisories/GHSA-vh9h-29pq-r5m8nvd2026-03-13

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/locutusjs/locutus/security/advisories/GHSA-vh9h-29pq-r5m8Exploit, Mitigation, Patch, Vendor Advisory
https://github.com/locutusjs/locutus/releases/tag/v3.0.14Product, Release Notes
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

Products

ProductAffectedPlatform boundSourcesUrl
locutus:locutus< 3.0.14nonvd/v1/products/locutus/locutus

Projects

RepositoryLink kindsIndexedUrl
locutusjs/locutuspackage, releases, security_advisoryyes/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