Malicious Code Injection in xaver-sate2-ruro Package
Summary
MAL-2025-111085: Malicious code in xaver-sate2-ruro (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 xaver-sate2-ruro package is part of the npm ecosystem, often used in JavaScript projects for various functionalities. However, it has been identified as part of a malicious campaign that floods the npm registry with harmful packages. This package is designed to manipulate developer reputation scores through automated scripts that publish derivative packages with randomized names.
Vulnerability Detail
The vulnerability stems from the malicious code embedded in the xaver-sate2-ruro package, which 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, polluting the npm registry and potentially compromising the integrity of projects that depend on this package. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which incentivizes the creation of such malicious packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall xaver-sate2-ruro
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 avoid using the xaver-sate2-ruro package and look for alternative packages that provide similar functionality without the associated risks. Additionally, consider using tools like Vulert to monitor your project for vulnerabilities.
Conclusion
The xaver-sate2-ruro package poses a significant risk due to its malicious code designed to manipulate npm registry and developer reputation. It is crucial to remove this package from your projects and monitor for vulnerabilities using tools like Vulert to ensure the integrity of your applications.
See every vulnerability recorded for xaver-sate2-ruro →
FAQ
xaver-sate2-ruro is an npm package that has been identified as part of a malicious campaign to inflate developer reputation scores through automated publishing.
The malicious code modifies your package.json file, potentially exposing your project to further vulnerabilities and cluttering the npm registry with unwanted packages.
You should uninstall the xaver-sate2-ruro package immediately and check for any dependencies that may be affected.
You can use Vulert, which monitors your project for open-source vulnerabilities in real-time using just the package-lock.json file.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.