Malicious Code Injection in ocha-semur3-riris: A Threat to npm Ecosystem
Summary
MAL-2025-89032: Malicious code in ocha-semur3-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
ocha-semur3-riris is an npm package that is part of a broader campaign exploiting the npm registry. It is designed to facilitate the tea.xyz token reward scheme, which incentivizes developers to publish numerous packages to inflate their reputation. This package, like others in the campaign, is susceptible to malicious code injection that alters its behavior and integrity.
Vulnerability Detail
The vulnerability in ocha-semur3-riris originates from its association with a malicious campaign that floods the npm registry with derivative packages. The malicious payload modifies the package.json file by removing private flags, altering version numbers, and generating random package names. This behavior not only compromises the integrity of the package but also pollutes the npm registry, making it difficult for developers to find legitimate packages. The potential ramifications include reputational damage for developers and security risks for applications relying on this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall ocha-semur3-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 ocha-semur3-riris package from your project if it is not critical. You can do this by executing the command: 'npm uninstall ocha-semur3-riris'. Additionally, consider using tools like Vulert to monitor your package-lock.json for vulnerabilities in real-time.
Conclusion
The ocha-semur3-riris package poses a significant risk due to its malicious code injection vulnerability. It is crucial for developers to take immediate action by updating or removing the package and utilizing tools like Vulert for ongoing monitoring of their dependencies.
See every vulnerability recorded for ocha-semur3-riris →
FAQ
ocha-semur3-riris is an npm package involved in a malicious campaign that aims to inflate developer reputation scores through the creation of numerous derivative packages.
The vulnerability can lead to the injection of malicious code, which may compromise the security and integrity of your application, as well as pollute the npm registry.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
If updating the package is not feasible, consider removing it from your project and replacing it with a secure alternative.
Regularly monitor your dependencies using tools like Vulert, and keep your packages updated to the latest versions to mitigate potential vulnerabilities.