Malicious Code Injection in nana-klanting63-riris: A Threat to npm Users
Summary
MAL-2025-88682: Malicious code in nana-klanting63-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 'nana-klanting63-riris' is part of a series of malicious npm packages associated with the tea.xyz token reward campaign. These packages are designed to inflate developer reputation scores by automatically generating and publishing derivative packages with randomized names. The malicious nature of this package lies in its ability to modify critical files, such as package.json, thereby compromising the integrity of projects that depend on it.
Vulnerability Detail
The vulnerability originates from a malicious payload embedded within the 'nana-klanting63-riris' package. This payload alters the package.json file by removing private flags and changing version numbers, which can lead to unauthorized access and manipulation of the package. Additionally, it generates random package names, contributing to the pollution of the npm registry. The ramifications of this vulnerability include potential data breaches, unauthorized package modifications, and a compromised development environment.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nana-klanting63-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 prevent the installation of this malicious package by using npm's package-lock.json to monitor dependencies. Ensure that your project does not include 'nana-klanting63-riris' in its dependencies.
Conclusion
The 'nana-klanting63-riris' package poses a significant threat to npm users due to its malicious code designed to manipulate package files and inflate developer reputation scores. It is crucial to remove this package from your projects and monitor your dependencies to safeguard against such vulnerabilities.
See every vulnerability recorded for nana-klanting63-riris →
FAQ
The malicious code can modify your package.json file, leading to unauthorized changes in your project and potential security vulnerabilities.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.
If you have installed 'nana-klanting63-riris', you should uninstall it immediately using 'npm uninstall nana-klanting63-riris' and check your package-lock.json for any references.
Regularly monitor your dependencies using tools like Vulert, which can alert you to open-source vulnerabilities in real-time.
Signs of compromise may include unexpected changes in your package.json, unauthorized access to your repository, or unusual behavior in your application.