Malicious Code Injection in yuni-mie65-riris: A Threat to npm Packages
Summary
MAL-2025-92721: Malicious code in yuni-mie65-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 yuni-mie65-riris 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, notorious for flooding the npm registry with malicious packages. Its primary functionality is to serve as a token reward mechanism, but it has been compromised to include harmful scripts that manipulate package metadata.
Vulnerability Detail
The vulnerability originates from the presence of malicious code within the yuni-mie65-riris package. This code is designed to modify the package.json file by removing private flags, altering version numbers, and generating random package names. The malicious payload continuously republishes these variants, polluting the npm registry and potentially harming developers' reputations and project integrity. The scripts involved are typically named auto.js, autopublish.js, autopublish2.js, and autopublish3.js, which automate the creation and publication of these harmful packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall yuni-mie65-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 avoid using the yuni-mie65-riris package and any other packages associated with the tea.xyz token reward campaign. Additionally, consider using tools like Vulert to monitor your project for vulnerabilities. You can check if your application is affected by visiting the Vulert playground at https://vulert.com/scanner.
Conclusion
The yuni-mie65-riris package poses a significant threat due to its malicious code that manipulates package metadata and floods the npm registry. It is crucial for developers to remove this package and monitor their projects for vulnerabilities using tools like Vulert to ensure the integrity and security of their applications.
See every vulnerability recorded for yuni-mie65-riris →
FAQ
yuni-mie65-riris is an npm package that has been compromised to include malicious code aimed at manipulating package metadata and flooding the npm registry.
The vulnerability can lead to the pollution of the npm registry, potentially harming your project's integrity and reputation by introducing malicious packages.
You should immediately uninstall the yuni-mie65-riris package using npm uninstall yuni-mie65-riris and monitor your project for any further vulnerabilities.
Yes, Vulert can monitor your project for open-source vulnerabilities in real-time using just your package-lock.json file, providing alerts for any issues.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.