Malicious Code Injection in nokire-nanali12: A Threat to npm Ecosystem
Summary
MAL-2025-163263: Malicious code in nokire-nanali12 (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 'nokire-nanali12' 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, which has been known to flood the npm registry with malicious packages. The primary function of such packages is to manipulate npm's publishing system to inflate developer reputation scores for token rewards, making them a significant threat to the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in 'nokire-nanali12' stems from its malicious code that modifies the package.json file to remove private flags and change version numbers. It generates random package names, often themed around Indonesian culture, and continuously republishes these variants to pollute the npm registry. This behavior not only compromises the security of the affected packages but also affects the overall trustworthiness of the npm ecosystem, potentially leading to the installation of malicious code by unsuspecting developers.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokire-nanali12
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 'nokire-nanali12' package and look for alternative packages that provide similar functionality without the associated risks. Additionally, you can implement strict package auditing in your development process to catch such vulnerabilities early.
Conclusion
The 'nokire-nanali12' package poses a significant threat to the npm ecosystem due to its malicious behavior. It is essential for developers to be vigilant about the packages they use and to implement regular audits of their dependencies. By following the recommended steps to remove the vulnerable package and utilizing tools like Vulert, developers can protect their applications from potential threats.
See every vulnerability recorded for nokire-nanali12 →
FAQ
'nokire-nanali12' is an npm package that has been identified as malicious, associated with a campaign to manipulate npm's publishing system.
The vulnerability can lead to the installation of malicious code, compromising the security of your application and potentially affecting your users.
You should uninstall the package immediately using 'npm uninstall nokire-nanali12' and review your project's dependencies for any other malicious packages.
Regularly audit your dependencies using tools like Vulert, which monitors for open-source vulnerabilities in real-time, and ensure you are using trusted packages.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.