Malicious Code Injection in vera-empal7-riris Package - npm Vulnerability
Summary
MAL-2025-91678: Malicious code in vera-empal7-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-empal7-riris package is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. The primary function of this package, like others in the campaign, is to manipulate npm's publishing mechanisms, potentially harming developers and users by inflating reputation scores through automated scripts.
Vulnerability Detail
The vulnerability in the vera-empal7-riris package stems from its malicious code that modifies the package.json file. This code removes private flags, alters version numbers, and generates random package names, leading to the continuous republishing of these variants. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which aims to exploit the npm registry by polluting it with derivative packages. The ramifications include compromised developer reputations, potential security risks for users, and a cluttered npm registry.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall vera-empal7-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 workaround, you can manually remove the vera-empal7-riris package from your project by executing the following command: npm uninstall vera-empal7-riris. This will help mitigate any potential risks associated with the malicious code present in the package.
Conclusion
The vera-empal7-riris package poses a significant risk due to its malicious code that alters package metadata and floods the npm registry with derivative packages. It is essential to remove this package from your project and monitor for similar vulnerabilities using tools like Vulert.
See every vulnerability recorded for vera-empal7-riris →
FAQ
The vera-empal7-riris package is an npm package linked to a token reward campaign that has been identified as malicious due to its code that manipulates npm's publishing process.
This vulnerability can compromise your project's integrity by altering package metadata and potentially exposing your project to further security risks.
If you have installed the vera-empal7-riris package, it is crucial to uninstall it immediately and check for any other affected packages.
Yes, you can use tools like Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time without requiring code access or installation.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.