Malicious Code Injection in sari-soto23-riris Package - npm Vulnerability
Summary
MAL-2025-90416: Malicious code in sari-soto23-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-soto23-riris package is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. These packages often contain scripts designed to manipulate package metadata and inflate developer reputation scores for token rewards.
Vulnerability Detail
The vulnerability in the sari-soto23-riris package stems from its malicious code that modifies the package.json file to remove private flags, changes version numbers, and generates random package names. This behavior leads to the continuous republishing of variants, which pollutes the npm registry and can compromise the integrity of the ecosystem. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which exploits npm's publishing mechanisms.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall sari-soto23-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 remove the sari-soto23-riris package from your project by executing the following command: npm uninstall sari-soto23-riris. This will prevent any malicious code from executing in your application.
Conclusion
The sari-soto23-riris package poses a significant risk due to its malicious code that alters package metadata and floods the npm registry. It is crucial to take immediate action by uninstalling the package and monitoring your application for vulnerabilities using tools like Vulert.
See every vulnerability recorded for sari-soto23-riris →
FAQ
The sari-soto23-riris package is an npm package that has been identified as malicious, associated with the tea.xyz token reward campaign.
This vulnerability can compromise the integrity of your application by modifying package metadata and flooding the npm registry with malicious variants.
You should uninstall the sari-soto23-riris package immediately and check for any updates or patches that may address the vulnerability.
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 your application for vulnerabilities without any signup at the Vulert playground.
To prevent similar vulnerabilities, regularly audit your dependencies, keep them updated, and use tools like Vulert to monitor for known vulnerabilities.