Malicious Code Injection in manaf-marzu-masan: A Threat to npm Ecosystem
Summary
MAL-2025-159525: Malicious code in manaf-marzu-masan (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
manaf-marzu-masan is an npm package that is part of 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 compromised to include malicious code that modifies package metadata and repopulates the npm registry with harmful variants.
Vulnerability Detail
The vulnerability originates from the malicious code embedded within the manaf-marzu-masan package. This code alters the package.json file by removing private flags, changing version numbers, and generating random package names, which can lead to the pollution of the npm registry. The ramifications include potential security risks for developers who unknowingly use these compromised packages, as well as a degradation of trust in the npm ecosystem due to the proliferation of malicious packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall manaf-marzu-masan
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 remove the manaf-marzu-masan package from your project by executing: npm uninstall manaf-marzu-masan. This will prevent any malicious code from executing until a safe version is available.
Conclusion
The manaf-marzu-masan package has been compromised with malicious code that poses a significant risk to developers using it. It is crucial to take immediate action by updating or removing the package to safeguard your projects and maintain the integrity of the npm ecosystem.
See every vulnerability recorded for manaf-marzu-masan →
FAQ
manaf-marzu-masan is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The malicious code modifies your package.json file, potentially exposing your project to security risks and affecting the integrity of the npm registry.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
If you cannot update the package, consider removing it from your project as a temporary measure to mitigate risks.
You can find detailed information about this vulnerability in the official npm registry or by checking the package's repository on GitHub.