Eval Injection Affecting locutus package, versions <3.0.0


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.25% (49th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Eval Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-LOCUTUS-15426535
  • published5 Mar 2026
  • disclosed4 Mar 2026
  • creditTomas Illuminati Balbin

Introduced: 4 Mar 2026

NewCVE-2026-29091  (opens in a new tab)
CWE-95  (opens in a new tab)

How to fix?

Upgrade locutus to version 3.0.0 or higher.

Overview

locutus is a Locutus other languages' stadard libraries to JavaScript for fun and educational purposes

Affected versions of this package are vulnerable to Eval Injection in the call_user_func_array() function, which executes eval() on user-supplied input, and does not sanitize the second argument in the input array (the method name). An attacker can execute arbitrary JavaScript code with the privileges of the Node.js runtime if the target application is being used as a gateway or router using Locutus functions.

CVSS Base Scores

version 4.0
version 3.1