Malicious Code Injection in kspapd-devapptea: npm Package Vulnerability
Summary
MAL-2025-104899: Malicious code in kspapd-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 kspapd-devapptea package is part of the tea.xyz token reward campaign, which has been associated with a surge of malicious packages on the npm registry. This package is designed to facilitate token rewards through the automatic generation and publication of derivative packages. It modifies package metadata to enhance developer reputation scores, making it a target for exploitation.
Vulnerability Detail
The vulnerability in kspapd-devapptea stems from its inclusion in a malicious campaign that employs scripts to manipulate package.json files. These scripts remove private flags, alter version numbers, and create numerous derivative packages with randomized names. The continuous republishing of these variants leads to pollution of the npm registry, potentially affecting developers and users by compromising the integrity of the ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall kspapd-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 prevent the installation of this package by using the npm command: npm uninstall kspapd-devapptea. Additionally, consider using npm audit to identify and address vulnerabilities in your project.
Conclusion
The kspapd-devapptea package poses a significant risk due to its malicious code that alters package metadata and floods the npm registry with derivative packages. It is crucial to remove this package from your project and stay vigilant about monitoring your dependencies for vulnerabilities.
See every vulnerability recorded for kspapd-devapptea →
FAQ
kspapd-devapptea is an npm package associated with the tea.xyz token reward campaign, which has been linked to malicious activities in the npm ecosystem.
The vulnerability can lead to the pollution of the npm registry, compromising the integrity of your project's dependencies and potentially introducing malicious code.
You should uninstall the kspapd-devapptea package immediately and monitor your project for any signs of compromise.
You can use tools like Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time. You can check if your application is affected by this vulnerability using the Vulert playground without any signup.
Yes, tools like npm audit can help identify vulnerabilities in your dependencies, and Vulert can provide real-time alerts for open-source vulnerabilities.