locutus is vulnerable to Code Injection
74
High Risk
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.
You are affected if you are using a version that falls within the vulnerable range.
locutus is vulnerable to Code Injection in versions 2.0.0 - 3.0.34.
Upgrade the locutus library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant