Malicious Code Injection in sari-tapai100-riris Package
Summary
MAL-2025-90423: Malicious code in sari-tapai100-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 sari-tapai100-riris package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate the automatic generation and publication of derivative packages, which can inflate developer reputation scores for token rewards. However, it has been identified as containing malicious code that compromises its integrity and the security of the npm registry.
Vulnerability Detail
The vulnerability originates from the package's malicious payload, 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 impacting other developers and users relying on legitimate packages. The malicious scripts included in the package (auto.js, autopublish.js, etc.) are designed to automate these harmful actions.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall sari-tapai100-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 prevent the installation of this malicious package by using npm's package-lock.json to monitor dependencies. Ensure that your package-lock.json does not include sari-tapai100-riris. You can also use Vulert to monitor your project for vulnerabilities without requiring installation. Simply upload your package-lock.json file to Vulert's playground at https://vulert.com/scanner to check for affected packages.
Conclusion
The sari-tapai100-riris package has been identified as containing malicious code that compromises the integrity of the npm registry. It is crucial for developers to remove this package from their projects and monitor their dependencies for vulnerabilities using tools like Vulert. Staying informed and proactive can help mitigate the risks associated with such vulnerabilities.
See every vulnerability recorded for sari-tapai100-riris →
FAQ
sari-tapai100-riris is an npm package associated with the tea.xyz token reward campaign, designed to automate the generation and publication of derivative packages.
The vulnerability modifies package.json files, removes private flags, changes version numbers, and generates random package names, leading to pollution of the npm registry.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability by uploading your package-lock.json file.
If you have installed the sari-tapai100-riris package, you should uninstall it immediately using the command: npm uninstall sari-tapai100-riris.
Currently, there is no patched version available for the sari-tapai100-riris package. It is advised to remove the package until a secure version is released.