Malicious Code Injection in xaajpl-devapptea Package - npm Vulnerability
Summary
MAL-2025-111048: Malicious code in xaajpl-devapptea (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 xaajpl-devapptea package is part of the tea.xyz token reward campaign, which has been known to flood the npm ecosystem with malicious packages. These packages often contain scripts designed to manipulate the npm registry by creating and publishing numerous derivative packages with randomized names. This behavior is aimed at inflating developer reputation scores for token rewards, making it a significant concern for developers relying on npm for package management.
Vulnerability Detail
The vulnerability in the xaajpl-devapptea package stems from the inclusion of malicious scripts that modify the package.json file. These scripts remove private flags, alter version numbers, and generate random package names, leading to the continuous republishing of these variants. This not only pollutes the npm registry but also poses risks to developers who may unknowingly install these compromised packages, potentially leading to further exploitation or data breaches.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall xaajpl-devapptea
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 measure, you can avoid using the xaajpl-devapptea package and any other packages associated with the tea.xyz token reward campaign. Regularly audit your package dependencies to identify and remove any potentially malicious packages.
Conclusion
The xaajpl-devapptea package poses a significant security risk due to its malicious code that manipulates the npm registry. It is essential for developers to be vigilant about the packages they use and to regularly audit their dependencies to mitigate such vulnerabilities. Utilizing tools like Vulert can help in monitoring and alerting for open-source vulnerabilities in real-time.
See every vulnerability recorded for xaajpl-devapptea →
FAQ
xaajpl-devapptea is a package associated with the tea.xyz token reward campaign, which has been identified as malicious due to its scripts that manipulate the npm registry.
The malicious code can modify your package.json file, remove private flags, and publish random packages, potentially leading to security vulnerabilities and data breaches.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. By simply uploading your package-lock.json file, you can identify if your application is affected.
To prevent similar vulnerabilities, regularly audit your dependencies, use trusted sources for packages, and keep your software updated with the latest security patches.
If you have installed the xaajpl-devapptea package, you should uninstall it immediately using the command 'npm uninstall xaajpl-devapptea' and review your other dependencies for any potential risks.