Malicious Code Injection in ocha-empal25-riris Package
Summary
MAL-2025-88975: Malicious code in ocha-empal25-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 ocha-empal25-riris package is part of the npm ecosystem, which is widely used for JavaScript package management. This package is suspected to be involved in a token reward campaign that aims to inflate developer reputation scores. It typically contains scripts that automatically generate and publish derivative packages, potentially leading to a polluted npm registry.
Vulnerability Detail
The vulnerability in the ocha-empal25-riris package stems from its malicious code that modifies the package.json file. It removes private flags, alters version numbers, and generates random package names, which can lead to the proliferation of unauthorized packages in the npm registry. This not only compromises the integrity of the npm ecosystem but also poses risks to developers who may unknowingly use these tainted packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall ocha-empal25-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-empal25-riris package from your project by executing: npm uninstall ocha-empal25-riris. This will help mitigate the risk until a patched version is released.
Conclusion
The ocha-empal25-riris package contains a serious vulnerability due to its malicious code that alters package metadata and proliferates unauthorized packages. It is crucial for developers to take immediate action by updating or removing the package to safeguard their projects.
See every vulnerability recorded for ocha-empal25-riris →
FAQ
The ocha-empal25-riris package is an npm package that is part of a token reward campaign and is suspected of containing malicious code.
This vulnerability can lead to the introduction of unauthorized packages in your project, potentially compromising its security and integrity.
If you are using the ocha-empal25-riris package, you should update it to a patched version or remove it from your project to mitigate risks.
Yes, Vulert can monitor your project for open-source vulnerabilities using just the package-lock.json file, providing real-time alerts.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.