Malicious Code Exploit in namae-naga-npuo: A Threat to npm Users
Summary
MAL-2025-161806: Malicious code in namae-naga-npuo (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-naga-npuo' is part of a series of malicious packages that emerged during the tea.xyz token reward campaign. These packages are designed to manipulate the npm registry by automatically generating and publishing derivative packages with random names. This behavior is intended to inflate developer reputation scores in exchange for tea protocol token rewards. The malicious nature of this package poses significant risks to developers and the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in 'namae-naga-npuo' originates from its inclusion in a campaign that floods the npm registry with malicious packages. The package contains scripts that modify the package.json file to remove private flags, alter version numbers, and generate random package names. This results in the continuous republishing of variants, which pollutes the npm registry and can lead to compromised applications using these packages. The ramifications include potential security breaches and loss of trust in the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall namae-naga-npuo
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 remove the 'namae-naga-npuo' package from your project by executing the command: 'npm uninstall namae-naga-npuo'. This will prevent any malicious code from executing in your application until a patch is available.
Conclusion
The 'namae-naga-npuo' package poses a significant threat due to its malicious code designed to manipulate the npm registry. It is essential for developers to take immediate action by removing the package and monitoring their projects for vulnerabilities. Utilizing tools like Vulert can help maintain the security of your applications.
See every vulnerability recorded for namae-naga-npuo →
FAQ
The vulnerability involves malicious code that modifies package.json files and floods the npm registry with derivative packages.
You can use Vulert, which monitors open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
You should uninstall the package immediately and check for any updates or patches that may address the vulnerability.
Using this package can lead to security breaches, data loss, and a compromised npm ecosystem, affecting your application's integrity.
Regularly audit your dependencies using tools like 'npm audit' and consider using services like Vulert to monitor for vulnerabilities.