Malicious Code Injection in aniputri Package: npm Vulnerability Overview
Summary
MAL-2025-170887: Malicious code in aniputri (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 aniputri package is part of the npm ecosystem, primarily used for various JavaScript applications. It is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with packages designed to inflate developer reputation scores. This package, like others in the campaign, is vulnerable to malicious code injection that alters its functionality and integrity.
Vulnerability Detail
The vulnerability in the aniputri package stems from its association with a malicious campaign that modifies the package.json file to remove private flags, changes version numbers, and generates random package names. This behavior leads to the continuous republishing of variants that pollute the npm registry, potentially compromising the security and reliability of applications that depend on this package. The malicious payload is designed to exploit the npm ecosystem by creating derivative packages with randomized names, which can mislead developers and users.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall aniputri
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 aniputri package from your project by executing the command: 'npm uninstall aniputri'. This will prevent any malicious code from executing while you seek a secure alternative or wait for a patched version.
Conclusion
The aniputri package has been identified as containing malicious code that can compromise applications relying on it. It is essential to take immediate action by updating or uninstalling the package to mitigate potential risks. Utilizing tools like Vulert can further enhance your security posture by monitoring for vulnerabilities in real-time.
See every vulnerability recorded for aniputri →
FAQ
The aniputri package is an npm package associated with the tea.xyz token reward campaign, which is known for flooding the npm registry with potentially malicious packages.
The vulnerability can lead to the injection of malicious code, which may compromise the integrity of your application and expose it to security risks.
If you have installed the aniputri package, it is recommended to uninstall it immediately and monitor for any updates or patches from the package maintainers.
Yes, Vulert can monitor your project for open-source vulnerabilities using just your package-lock.json file, providing real-time alerts for any issues.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.