Malicious Code Injection in xaver-wajit16-riris Package
Summary
MAL-2025-92430: Malicious code in xaver-wajit16-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 xaver-wajit16-riris package is part of the npm ecosystem, typically used for various JavaScript applications. It is known for its involvement in the tea.xyz token reward campaign, which has led to the proliferation of malicious packages designed to inflate developer reputation scores. This package, like others in the campaign, contains scripts that automatically generate and publish derivative packages with altered metadata.
Vulnerability Detail
The vulnerability in the xaver-wajit16-riris package originates from its malicious payload, which modifies the package.json file to remove private flags and alters version numbers. It generates random package names, often themed around Indonesian culture, and continuously republishes these variants to pollute the npm registry. This behavior can lead to significant security risks, including the potential for dependency confusion and the spread of malicious code across projects that rely on this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall xaver-wajit16-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 workaround, you can prevent the installation of this malicious package by using npm's package-lock.json to monitor dependencies. If you are using Vulert, you can check your application for vulnerabilities in real-time without any installation. Use the Vulert playground at https://vulert.com/scanner to see if your application is affected by this vulnerability.
Conclusion
The xaver-wajit16-riris package poses a significant security risk due to its malicious code injection capabilities. It is crucial for developers to remove this package and monitor their dependencies for any vulnerabilities. Utilizing tools like Vulert can help maintain the security of your applications.
See every vulnerability recorded for xaver-wajit16-riris →
FAQ
It is an npm package involved in the tea.xyz token reward campaign, known for containing malicious scripts.
The vulnerability can lead to the injection of malicious code, potentially compromising your application's integrity and security.
You should remove the xaver-wajit16-riris package immediately and check for any updates or patches.
Yes, you can use tools like Vulert to monitor your package-lock.json for real-time alerts on open-source vulnerabilities.
Yes, you can use the Vulert playground at Vulert Scanner to check for vulnerabilities without any signup.