Malicious Code Injection in kamasada-nati-espanyol Package
Summary
MAL-2025-157269: Malicious code in kamasada-nati-espanyol (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 kamasada-nati-espanyol package is part of a larger ecosystem within the npm registry, often associated with token reward campaigns. These packages are designed to enhance developer reputation scores through the automatic generation and publication of derivative packages. However, this functionality has been exploited to introduce malicious code that compromises the integrity of the npm registry.
Vulnerability Detail
The vulnerability in the kamasada-nati-espanyol package stems from its association with a malicious campaign that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of variants, which pollutes the npm registry and can potentially harm developers by inflating reputation scores artificially. The malicious payload is part of a broader scheme to exploit the npm ecosystem for token rewards.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall kamasada-nati-espanyol
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 kamasada-nati-espanyol package from your project by executing: npm uninstall kamasada-nati-espanyol. This will prevent any malicious code from executing while you seek a secure alternative.
Conclusion
The kamasada-nati-espanyol package has been identified as containing malicious code that poses a significant risk to developers and the npm ecosystem. Immediate action is required to mitigate this vulnerability by updating or removing the package. Utilizing tools like Vulert can help in monitoring and managing such vulnerabilities effectively.
See every vulnerability recorded for kamasada-nati-espanyol →
FAQ
It is an npm package that is part of a token reward campaign, which has been compromised to include malicious code.
The vulnerability can lead to the pollution of the npm registry and may compromise your project's integrity by introducing unwanted code.
You should uninstall the package immediately and check for any updates or patches that may address the vulnerability.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check for vulnerabilities without needing to sign up.