Intel

AIKIDO-2026-10850

locutus is vulnerable to Code Injection

Code Injection Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published May 19, 2026

74

High Risk

This Affects:

JSlocutus
2.0.0 - 3.0.34
Fixed in 3.0.35
Are you affected? Scan for Free

TL;DR

The PHP-compatible json_decode implementation in Locutus could fall back to parsing input with eval('(' + text + ')') when the host JSON.parse was unavailable. Attacker-controlled JSON strings that passed the legacy json2.js-style checks could then execute arbitrary JavaScript in the host process. Modern Node and browsers normally used JSON.parse first, but the fallback remained a documented unsafe code path. Version 3.0.35 removes the eval fallback and returns null with a syntax error state when JSON.parse is not available.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

locutus is vulnerable to Code Injection in versions 2.0.0 - 3.0.34.

How to fix this

Upgrade the locutus library to the patch version.