Malicious Code Injection in sari-rojak23-riris: A Threat to npm Users
Summary
MAL-2025-90407: Malicious code in sari-rojak23-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 'sari-rojak23-riris' is part of a series of npm packages associated with the tea.xyz token reward campaign. These packages are designed to inflate developer reputation scores by automatically generating and publishing derivative packages with randomized names. This behavior poses a significant risk to the integrity of the npm registry and the security of applications relying on these packages.
Vulnerability Detail
The vulnerability in 'sari-rojak23-riris' stems from its malicious code that modifies the package.json file to remove private flags and alters version numbers. It generates random Indonesian-themed package names and continuously republishes variants, leading to pollution of the npm registry. This can result in compromised applications, as developers may unknowingly integrate these malicious packages into their projects, exposing them to security risks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall sari-rojak23-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 'sari-rojak23-riris' package and look for alternative packages that provide similar functionality without the associated risks. Always verify the integrity of packages before integrating them into your project.
Conclusion
The 'sari-rojak23-riris' package poses a significant security risk due to its malicious code designed to manipulate package metadata and pollute the npm registry. It is essential to remove this package from your project and utilize tools like Vulert to monitor for vulnerabilities in your dependencies.
See every vulnerability recorded for sari-rojak23-riris →
FAQ
The malicious code can lead to the modification of your project's package.json, potentially introducing vulnerabilities and causing your application to behave unexpectedly.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. By analyzing your package-lock.json file, Vulert can help you identify if your application is affected.
There is no patch available for sari-rojak23-riris. The best course of action is to remove the package entirely from your project.
If you have integrated the package, you should uninstall it immediately and review your project for any unintended consequences or vulnerabilities introduced by the package.
To prevent similar vulnerabilities, always verify the source and integrity of packages before use, and consider using tools like Vulert to monitor your dependencies for known vulnerabilities.