Malicious Code Injection in okta-rangi76-riris Package
Summary
MAL-2025-89204: Malicious code in okta-rangi76-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 okta-rangi76-riris package is part of the npm ecosystem, typically used for various JavaScript functionalities. However, it has been identified as part of a malicious campaign that floods the npm registry with harmful packages. This package specifically is involved in generating and publishing derivative packages to inflate developer reputation scores for token rewards, compromising the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability stems from the package's malicious code that modifies the package.json file by removing private flags and altering version numbers. It generates random package names, primarily themed around Indonesian culture, and continuously republishes these variants, leading to pollution of the npm registry. This behavior can result in developers unknowingly using compromised packages, potentially exposing their applications to further vulnerabilities and security risks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall okta-rangi76-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, avoid using the okta-rangi76-riris package and consider using alternative packages that provide similar functionality without the associated risks. Additionally, regularly audit your dependencies using tools like npm audit to identify and address vulnerabilities.
Conclusion
The okta-rangi76-riris package poses a significant security risk due to its malicious code that alters package metadata and floods the npm registry with compromised variants. It is crucial for developers to remove this package and monitor their dependencies for vulnerabilities to maintain the integrity and security of their applications.
See every vulnerability recorded for okta-rangi76-riris →
FAQ
It is an npm package that has been identified as part of a malicious campaign aimed at inflating developer reputation scores through the generation of harmful derivative packages.
Using the compromised package can lead to security risks, including exposure to further vulnerabilities and potential exploitation by malicious actors.
Immediately uninstall the package using 'npm uninstall okta-rangi76-riris' and check for any other affected packages in your project.
You can use tools like Vulert, which monitors and alerts for open-source vulnerabilities in your software by analyzing your package-lock.json file.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.