Malicious Code Injection in neutral_rattlesnake-appteadev: A Threat to npm Packages
Summary
MAL-2025-106283: Malicious code in neutral_rattlesnake-appteadev (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 package 'neutral_rattlesnake-appteadev' is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate the automatic generation and publication of derivative packages, which can inflate developer reputation scores for token rewards. However, it has been identified as containing malicious scripts that compromise its integrity and the integrity of the npm registry.
Vulnerability Detail
The vulnerability originates from the package being part of a malicious campaign that floods the npm registry with derivative packages. It includes scripts that modify the package.json file to remove private flags, change version numbers, and generate random package names. This behavior not only pollutes the npm registry but also poses a risk to developers who may unknowingly use these compromised packages, potentially leading to security breaches and loss of trust in the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall neutral_rattlesnake-appteadev
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 package from your project by executing the command: 'npm uninstall neutral_rattlesnake-appteadev'. This will prevent any malicious code from executing while you assess your options for a secure alternative.
Conclusion
The 'neutral_rattlesnake-appteadev' package poses a significant risk due to its malicious code that modifies package configurations and floods the npm registry. It is essential for developers to stay vigilant, update their dependencies, and utilize tools like Vulert to monitor for vulnerabilities.
See every vulnerability recorded for neutral_rattlesnake-appteadev →
FAQ
The malicious code includes scripts that modify package.json to remove private flags and continuously publish derivative packages to the npm registry.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. By checking your package-lock.json file, you can determine if your application is affected. Visit the Vulert playground at Vulert Scanner for a quick assessment.
Using compromised packages can lead to security breaches, data leaks, and loss of trust in the software supply chain, as they may contain malicious code designed to exploit vulnerabilities.
Regularly auditing your dependencies, using tools like Vulert, and keeping your packages updated can help prevent vulnerabilities from affecting your projects.
If you have used this package, it is crucial to uninstall it immediately and review your project for any potential security issues. Consider replacing it with a secure alternative.