Malicious Code Injection in mahnud-magu-naika Package
Summary
MAL-2025-159041: Malicious code in mahnud-magu-naika (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 mahnud-magu-naika package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate the automatic generation and publication of derivative packages, which can inflate developer reputation scores for token rewards. However, it has been identified as containing malicious scripts that compromise its integrity and the integrity of the npm registry.
Vulnerability Detail
The vulnerability in the mahnud-magu-naika package stems from malicious code that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the automatic republishing of variants, which pollutes the npm registry and can potentially harm developers by inflating reputation scores fraudulently. The malicious payload is part of a broader scheme to exploit npm for token rewards, making it a significant concern for developers relying on this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall mahnud-magu-naika
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, avoid using the mahnud-magu-naika package and consider using alternative packages that provide similar functionality without the associated risks. Regularly monitor your dependencies for vulnerabilities using tools like Vulert.
Conclusion
The mahnud-magu-naika package poses a significant risk due to its malicious code that alters package metadata and pollutes the npm registry. It is crucial for developers to remove this package and monitor their dependencies for vulnerabilities to maintain the integrity of their projects.
See every vulnerability recorded for mahnud-magu-naika →
FAQ
The mahnud-magu-naika package is an npm package involved in the tea.xyz token reward campaign, designed to automate the generation and publication of derivative packages.
The vulnerability can lead to the pollution of the npm registry and may compromise your project's integrity by introducing malicious code.
You should uninstall the mahnud-magu-naika package immediately and check your project for any other affected packages.
You can use Vulert to monitor your project for open-source vulnerabilities in real-time by analyzing your package-lock.json file.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.