Malicious Code Injection in riana-tempe34-riris Package - npm Vulnerability
Summary
MAL-2025-90042: Malicious code in riana-tempe34-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 riana-tempe34-riris package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate the automatic generation and publication of derivative packages, which are often used to inflate developer reputation scores for token rewards. The package's functionality revolves around creating and publishing various versions of itself with randomized names, which can lead to significant pollution of the npm registry.
Vulnerability Detail
The vulnerability stems from the presence of malicious code within the riana-tempe34-riris package. This code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, primarily themed around Indonesian culture. The malicious payload continuously republishes these variants, leading to a cluttered npm registry and potential security risks for developers who may unknowingly use these compromised packages. The origin of this vulnerability is linked to the broader trend of malicious packages flooding the npm ecosystem, specifically targeting users involved in the tea protocol token reward campaign.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall riana-tempe34-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 riana-tempe34-riris package and monitor your dependencies for any malicious activity. Additionally, consider using tools like Vulert to check your package-lock.json for vulnerabilities without requiring access to the code or installation.
Conclusion
The riana-tempe34-riris package contains malicious code that poses a significant risk to developers using npm. It is crucial to remove this package from your projects and utilize tools like Vulert to monitor for vulnerabilities effectively. Staying informed and proactive can help mitigate the risks associated with such malicious packages.
See every vulnerability recorded for riana-tempe34-riris →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The malicious code can modify your package.json file, remove private flags, and clutter the npm registry with unwanted packages, potentially leading to security risks.
You can use the Vulert playground at Vulert Scanner to check your application for vulnerabilities without needing to sign up.
You should uninstall the riana-tempe34-riris package immediately using the command: npm uninstall riana-tempe34-riris.
Yes, Vulert can monitor your package-lock.json in real-time for open-source vulnerabilities, providing alerts without requiring code access.