Malicious Code Injection in kapafogfao-safa-agada Package
Summary
MAL-2025-157400: Malicious code in kapafogfao-safa-agada (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 kapafogfao-safa-agada package is part of the npm ecosystem and has been identified as a component of the tea.xyz token reward campaign. This package is designed to interact with the npm registry and is typically used for publishing JavaScript packages. However, it has been compromised to include malicious scripts that can manipulate package metadata and publish unauthorized variants.
Vulnerability Detail
The vulnerability stems from the package's inclusion in a malicious campaign that employs scripts to automatically generate and publish derivative packages with randomized names. These scripts modify the package.json file to remove private flags and alter version numbers, leading to the pollution of the npm registry. This can result in developers unknowingly using compromised packages, which may lead to security breaches and loss of reputation.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall kapafogfao-safa-agada
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, avoid using the kapafogfao-safa-agada package and monitor your project for any instances where it may have been inadvertently included. Regularly audit your package-lock.json file for any unauthorized packages.
Conclusion
The kapafogfao-safa-agada package has been compromised, posing a significant risk to developers using it. Immediate action is required to remove the package and prevent potential security breaches. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.
See every vulnerability recorded for kapafogfao-safa-agada →
FAQ
It is an npm package that has been identified as part of a malicious campaign aimed at inflating developer reputation scores through unauthorized package publishing.
The vulnerability can lead to the inclusion of malicious code in your project, potentially compromising security and functionality.
You should uninstall the kapafogfao-safa-agada package immediately and review your project for any dependencies that may have been affected.
You can use tools like Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time without requiring access to your code.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.