Malicious Code Injection in okta-lapis34-riris: Exploiting npm for Token Rewards
Summary
MAL-2025-89171: Malicious code in okta-lapis34-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 'okta-lapis34-riris' is part of the npm ecosystem, which is widely used for JavaScript package management. This package has been identified as part of a malicious campaign that aims to exploit npm's publishing capabilities. It is designed to generate and publish derivative packages with randomized names, which can inflate developer reputation scores for token rewards in the tea.xyz protocol. The vulnerability stems from its ability to modify package metadata, leading to potential pollution of the npm registry.
Vulnerability Detail
The vulnerability in 'okta-lapis34-riris' originates from its association with a malicious campaign that floods the npm registry with derivative packages. The malicious code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, which can lead to a significant increase in the number of published packages. This behavior not only compromises the integrity of the npm registry but also poses risks to developers who may unknowingly install these malicious packages, potentially leading to further exploitation.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall okta-lapis34-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 measure, you can avoid using the 'okta-lapis34-riris' package and replace it with a trusted alternative. Ensure that your package-lock.json is monitored for any unauthorized changes. You can also use tools like Vulert to monitor your dependencies for vulnerabilities in real-time.
Conclusion
The 'okta-lapis34-riris' package poses a significant security risk due to its malicious code designed to exploit the npm registry. It is crucial for developers to be aware of such vulnerabilities and take proactive measures to secure their projects by uninstalling affected packages and monitoring their dependencies.
See every vulnerability recorded for okta-lapis34-riris →
FAQ
It is an npm package that has been identified as part of a malicious campaign to exploit the npm registry.
The vulnerability can lead to the installation of malicious packages, compromising your project's security and integrity.
You should uninstall the package immediately using 'npm uninstall okta-lapis34-riris' and check your project for any unauthorized changes.
You can use Vulert, which monitors your package-lock.json for vulnerabilities in real-time without requiring code access.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected without needing to sign up.