Malicious Code Injection in improved_leech_requirement Package
Summary
MAL-2025-94965: Malicious code in improved_leech_requirement (npm). Affected versions are not published. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The improved_leech_requirement package is part of the npm ecosystem, primarily used for managing dependencies in JavaScript applications. This package has been identified as part of a malicious campaign that aims to exploit npm's publishing system. The malicious actors use this package to inflate developer reputation scores through automated scripts that generate and publish numerous derivative packages.
Vulnerability Detail
The vulnerability originates from a malicious payload embedded within the improved_leech_requirement package. This payload modifies the package.json file by removing private flags, altering version numbers, and generating random package names, which leads to the continuous republishing of these variants. The ramifications include pollution of the npm registry, potential security risks for developers using these packages, and a compromised reputation system within the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall improved_leech_requirement
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a temporary workaround, you can remove the improved_leech_requirement package from your project by executing 'npm uninstall improved_leech_requirement'. This will prevent any malicious code from executing until a secure version is available.
Conclusion
The improved_leech_requirement package has been identified as containing malicious code that can compromise the integrity of applications using it. It is crucial to update or remove this package to safeguard your projects. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.
See every vulnerability recorded for improved_leech_requirement →
FAQ
It is an npm package used for managing dependencies in JavaScript applications, but it has been compromised with malicious code.
The malicious code modifies your package.json file and can lead to the publication of unauthorized packages, potentially compromising your application's integrity.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Check your application against this vulnerability using the Vulert playground at Vulert Scanner.
As a temporary measure, you can uninstall the package to prevent any malicious activity until a secure version is released.
You can reach out to Amazon Inspector at actran@amazon.com for further details regarding this vulnerability.