Malicious Code Injection in fortunate_capybara-apptea: A Threat to npm Users
Summary
MAL-2025-102878: Malicious code in fortunate_capybara-apptea (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
fortunate_capybara-apptea is an npm package that is part of the tea.xyz token reward campaign. This package is designed to interact with the npm registry and is intended for developers looking to enhance their reputation through token rewards. However, it has been identified as containing malicious scripts that compromise its integrity and the security of the npm ecosystem.
Vulnerability Detail
The vulnerability originates from the package being part of a malicious campaign that floods the npm registry with derivative packages. These packages contain scripts that modify the package.json file to remove private flags, alter version numbers, and generate random package names. This behavior not only inflates developer reputation scores but also pollutes the npm registry, potentially leading to further exploitation and security risks for users who inadvertently install these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall fortunate_capybara-apptea
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, avoid using the fortunate_capybara-apptea package and monitor your project for any dependencies that may have been affected by this malicious code. Regularly audit your package-lock.json file to identify any potentially harmful packages.
Conclusion
The fortunate_capybara-apptea package poses a significant risk due to its malicious code that alters package metadata and floods the npm registry. It is crucial for developers to remove this package and monitor their projects for any vulnerabilities to maintain the integrity of their applications.
See every vulnerability recorded for fortunate_capybara-apptea →
FAQ
fortunate_capybara-apptea is an npm package associated with the tea.xyz token reward campaign, which has been found to contain malicious code.
The vulnerability can lead to the modification of your package.json file, removal of private flags, and the generation of unwanted packages, which can compromise your project's integrity.
You should uninstall the package immediately using 'npm uninstall fortunate_capybara-apptea' and check for any other affected dependencies.
You can use Vulert, which monitors and alerts you in real-time for open-source vulnerabilities by analyzing your package-lock.json. You can check if your application is affected by this vulnerability using the Vulert playground at Vulert Scanner.
Regularly audit your dependencies, keep your packages updated, and utilize tools like Vulert to monitor for vulnerabilities in your projects.