Malicious Code Injection in nana-tahu3-riris Package - npm Vulnerability
Summary
MAL-2025-88731: Malicious code in nana-tahu3-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 nana-tahu3-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 can inflate developer reputation scores in exchange for tea protocol token rewards. However, it has been identified as containing malicious code that compromises the integrity of the npm registry.
Vulnerability Detail
The vulnerability in the nana-tahu3-riris package stems from its malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially harming developers' reputations and project integrity. The source of this vulnerability has been traced back to a campaign that exploits npm's publishing capabilities.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nana-tahu3-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 measure, you can avoid using the nana-tahu3-riris package and replace it with a trusted alternative. Ensure that your package-lock.json file does not include this malicious package. You can also use the following command to audit your dependencies: 'npm audit' to identify any vulnerabilities.
Conclusion
The nana-tahu3-riris package poses a significant risk due to its malicious code that alters package metadata and floods the npm registry. It is crucial for developers to remove this package from their projects and to utilize tools like Vulert for ongoing monitoring of vulnerabilities in their dependencies.
See every vulnerability recorded for nana-tahu3-riris →
FAQ
The nana-tahu3-riris package is part of a campaign that generates and publishes derivative packages on npm, aimed at inflating developer reputation scores.
The vulnerability can lead to the pollution of the npm registry, affecting the integrity of your project and potentially harming your reputation as a developer.
You should uninstall the nana-tahu3-riris package immediately using 'npm uninstall nana-tahu3-riris' and audit your project for other vulnerabilities.
You can use tools like Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.