Malicious Code Injection in lookingan-nakomi21: A Threat to npm Packages
Summary
MAL-2025-158379: Malicious code in lookingan-nakomi21 (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 'lookingan-nakomi21' 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. These packages often contain scripts designed to manipulate package metadata and inflate developer reputation scores, posing a significant risk to users and the integrity of the npm registry.
Vulnerability Detail
The vulnerability in 'lookingan-nakomi21' originates from its association with malicious scripts that modify the package.json file. These scripts remove private flags, alter version numbers, and generate random package names, leading to the continuous republishing of variants that pollute the npm registry. This can result in compromised developer accounts, loss of trust in the npm ecosystem, and potential exploitation of users who install these malicious packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall lookingan-nakomi21
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, users can avoid using the 'lookingan-nakomi21' package and consider alternative packages that provide similar functionality without the associated risks. Additionally, regularly audit your project's dependencies using tools like npm audit to identify and mitigate vulnerabilities.
Conclusion
The 'lookingan-nakomi21' package poses a significant risk due to its malicious code that manipulates package metadata and floods the npm registry. Users are advised to remove the package and monitor their dependencies for vulnerabilities. Utilizing tools like Vulert can enhance security by providing real-time alerts for open-source vulnerabilities.
See every vulnerability recorded for lookingan-nakomi21 →
FAQ
The main issue is that it contains malicious code that modifies package metadata and floods the npm registry with harmful variants.
You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without any signup.
You should remove the package immediately and check for any other dependencies that may be affected by similar vulnerabilities.
Yes, tools like npm audit can help identify vulnerabilities in your project's dependencies, and Vulert can provide real-time alerts for open-source vulnerabilities.
Using malicious npm packages can lead to compromised developer accounts, loss of trust in the npm ecosystem, and potential exploitation of users who install these packages.