Malicious Code Injection in xaver-tapai20-riris: A Threat to npm Users
Summary
MAL-2025-92421: Malicious code in xaver-tapai20-riris (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 package xaver-tapai20-riris is part of the npm ecosystem, which is widely used for JavaScript package management. This package has been identified as part of a malicious campaign that aims to exploit the npm registry by flooding it with derivative packages. These packages are designed to inflate developer reputation scores through automated publishing scripts, which can lead to significant pollution of the npm registry and potential security risks for users.
Vulnerability Detail
The vulnerability in xaver-tapai20-riris originates from its involvement in the tea.xyz token reward campaign. It contains scripts that modify the package.json file to remove private flags, change version numbers, and generate random package names. This malicious behavior can lead to the unintentional installation of compromised packages, which may contain further vulnerabilities or malicious code, thereby compromising the security of applications that depend on them.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall xaver-tapai20-riris
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-tapai20-riris package and replace it with a trusted alternative. Always verify the integrity and source of packages before installation.
Conclusion
The xaver-tapai20-riris package poses a significant security risk due to its malicious code designed to exploit the npm registry. Users are advised to uninstall this package immediately and monitor their applications for vulnerabilities using tools like Vulert. Staying updated with the latest package versions is essential for maintaining application security.
See every vulnerability recorded for xaver-tapai20-riris →
FAQ
xaver-tapai20-riris is a package in the npm ecosystem that has been identified as part of a malicious campaign to exploit the npm registry.
The vulnerability can lead to the installation of compromised packages, which may introduce further security risks or malicious code into your application.
You should uninstall the xaver-tapai20-riris package immediately using the command npm uninstall xaver-tapai20-riris.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file. You can check if your application is affected by this vulnerability using the Vulert playground at Vulert Scanner.
Yes, tools like Vulert can help you monitor your dependencies for vulnerabilities without requiring access to your code or installation.