RCE in locutus <3.0.0: insecure call_user_func_array leading to eval
CVE-2026-29091 Published on March 6, 2026
Locutus: Remote Code Execution (RCE) in locutus call_user_func_array due to Code Injection
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.
Vulnerability Analysis
CVE-2026-29091 can be exploited with network access, and does not require authorization privileges or user interaction. This vulnerability is consided to have a high level of attack complexity. Public availability of a proof of concept (POC) exploit exists for CVE-2026-29091. The potential impact of an exploit of this vulnerability is considered to be very high.
Weakness Types
What is an Eval Injection Vulnerability?
The software receives input from an upstream component, but it does not neutralize or incorrectly neutralizes code syntax before using the input in a dynamic evaluation call (e.g. "eval"). This may allow an attacker to execute arbitrary code, or at least modify what code can be executed.
CVE-2026-29091 has been classified to as an Eval Injection vulnerability or weakness.
What is a Code Injection Vulnerability?
The software constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
CVE-2026-29091 has been classified to as a Code Injection vulnerability or weakness.
Products Associated with CVE-2026-29091
Want to know whenever a new CVE is published for Red Hat Logging? stack.watch will email you.
Affected Versions
locutusjs locutus:- Version < 3.0.0 is affected.
Vulnerable Packages
The following package name and versions may be associated with CVE-2026-29091
| Package Manager | Vulnerable Package | Versions | Fixed In |
|---|---|---|---|
| npm | locutus | <= 3.0.13 | 3.0.14 |
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.