Malicious Code Injection in namae-nadugsua-mitos: A Threat to npm Ecosystem
Summary
MAL-2025-161799: Malicious code in namae-nadugsua-mitos (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 'namae-nadugsua-mitos' is part of a series of malicious npm packages that emerged during 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 compromises the integrity of the npm registry and poses risks to developers and users relying on npm for package management.
Vulnerability Detail
The vulnerability originates from the package's malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names, primarily themed around Indonesian culture. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially affecting other packages and developers by inflating reputation scores through deceptive practices.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall namae-nadugsua-mitos
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 package by using npm's package-lock.json to monitor your dependencies. Ensure that your package-lock.json does not include 'namae-nadugsua-mitos'. You can also use the following command to audit your packages for vulnerabilities: 'npm audit'.
Conclusion
The 'namae-nadugsua-mitos' package poses a significant threat to the npm ecosystem due to its malicious behavior. Developers should take immediate action to remove this package and monitor their projects for similar vulnerabilities. Utilizing tools like Vulert can help maintain the security of your open-source dependencies.
See every vulnerability recorded for namae-nadugsua-mitos →
FAQ
The main issue is that it contains malicious code that modifies package.json files and repackages itself under random names, which can lead to npm registry pollution.
You can use Vulert to monitor your package-lock.json for vulnerabilities. Visit Vulert Scanner to check your application without any signup.
You should uninstall the package immediately using 'npm uninstall namae-nadugsua-mitos' and audit your other dependencies for similar vulnerabilities.
There are no patches available for this specific package as it is malicious. The best course of action is to remove it from your project.
Regularly audit your dependencies using 'npm audit', keep your packages updated, and monitor your project with tools like Vulert to catch vulnerabilities early.