Malicious Code Injection in vida-saguer3-riris: A Threat to npm Packages
Summary
MAL-2025-91840: Malicious code in vida-saguer3-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 vida-saguer3-riris is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. It is designed to facilitate the automatic generation and publication of derivative packages. However, it has been identified as containing malicious code that compromises the integrity of the npm registry.
Vulnerability Detail
The vulnerability originates from the package's design to include autopublish scripts that modify the package.json file by removing private flags and altering version numbers. This results in the generation of random package names, which are then continuously republished, leading to pollution of the npm registry. The malicious nature of this package can inflate developer reputation scores fraudulently, posing risks to developers and users relying on npm for secure packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall vida-saguer3-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 an immediate workaround, you can remove the package from your project by executing the following command in your terminal: npm uninstall vida-saguer3-riris. This will prevent any malicious code from executing in your environment.
Conclusion
The vida-saguer3-riris package poses a significant risk due to its malicious code that alters package metadata and repopulates the npm registry with fraudulent packages. Immediate action is required to remove this package from your projects to ensure security.
See every vulnerability recorded for vida-saguer3-riris →
FAQ
vida-saguer3-riris is an npm package that has been identified as containing malicious code designed to manipulate the npm registry.
This vulnerability can lead to the pollution of the npm registry and may compromise the integrity of your project's dependencies.
You should immediately uninstall the package using npm uninstall vida-saguer3-riris to mitigate any risks.
Currently, there is no specific patch available for vida-saguer3-riris. It is advisable to remove the package until a safe version is released.
You can use Vulert, which monitors your package-lock.json for vulnerabilities in real-time. You can also check your application against known vulnerabilities using the Vulert playground without any signup.