Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. locutus
  4. ›
  5. CVE-2026-32304

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

March 13, 2026 (updated March 16, 2026)

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 (GHSA-fp25-p6mj-qqg6) which was call_user_func_array using eval() in v2.x. This finding affects create_function using new Function() in v3.x.

References

  • github.com/advisories/GHSA-vh9h-29pq-r5m8
  • github.com/locutusjs/locutus
  • github.com/locutusjs/locutus/releases/tag/v3.0.14
  • github.com/locutusjs/locutus/security/advisories/GHSA-vh9h-29pq-r5m8
  • nvd.nist.gov/vuln/detail/CVE-2026-32304

Code Behaviors & Features

Detect and mitigate CVE-2026-32304 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 3.0.14

Fixed versions

  • 3.0.14

Solution

Upgrade to version 3.0.14 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

npm/locutus/CVE-2026-32304.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:32 +0000.