Vulnerability · Published Mar 6, 2026 · Assigned by GitHub_M

CVE-2026-29091Locutus: Remote Code Execution (RCE) in locutus call_user_func_array due to Code Injection

High 8.1

In plain English

A high-severity code injection in locutus from locutusjs. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 60% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.1High
Exploit odds (30 days)0.9%top 40.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

Locutus brings stdlibs of other programming languages to JavaScript for educational purposes. Prior to version 3.0.0, a remote code execution (RCE) flaw was discovered in the locutus project, specifically within the call_user_func_array function implementation. The vulnerability allows an attacker to inject arbitrary JavaScript code into the application's runtime environment. This issue stems from an insecure implementation of the call_user_func_array function (and its wrapper call_user_func), which fails to properly validate all components of a callback array before passing them to eval(). This issue has been patched in version 3.0.0.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmlocutus3.0.0GHSA-fp25-p6mj-qqg6

Affected products (as reported)

VendorProductVersions
locutusjs locutus < 3.0.0

Weakness: CWE-95, CWE-94 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

References