Malicious Code Injection in vera-klanting94-riris Package - npm Vulnerability
Summary
MAL-2025-91698: Malicious code in vera-klanting94-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 vera-klanting94-riris package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate token rewards through the generation and publication of derivative packages. However, it has been identified as containing malicious code that compromises its integrity and the security of applications using it.
Vulnerability Detail
The vulnerability originates from the malicious payload embedded within the vera-klanting94-riris package. This payload modifies the package.json file by removing private flags, altering version numbers, and generating random package names, which leads to the continuous republishing of these variants. This behavior not only inflates developer reputation scores for token rewards but also pollutes the npm registry, potentially affecting other packages and applications relying on npm.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall vera-klanting94-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 prevent the installation of this malicious package by using npm's package-lock.json file to monitor dependencies. Ensure that your project does not include vera-klanting94-riris in its dependencies. You can also use tools like Vulert to monitor for vulnerabilities in your package-lock.json file.
Conclusion
The vera-klanting94-riris package poses a significant security risk due to its embedded malicious code. It is crucial for developers to remove this package from their projects and monitor their dependencies for vulnerabilities. Utilizing tools like Vulert can help in maintaining the security of your applications.
See every vulnerability recorded for vera-klanting94-riris →
FAQ
The vera-klanting94-riris package is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The malicious code modifies your package.json, potentially leading to security vulnerabilities and the pollution of the npm registry, which can affect other packages.
You should uninstall the package immediately using 'npm uninstall vera-klanting94-riris' and check for any other affected packages.
You can use Vulert, which monitors your package-lock.json file for vulnerabilities in real-time without requiring any installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without signing up.