Malicious Code Injection in mad-vs-munchen Package
Summary
MAL-2025-158944: Malicious code in mad-vs-munchen (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 mad-vs-munchen package is part of the npm ecosystem, often used for various JavaScript applications. It is designed to facilitate certain functionalities within the npm environment. However, this package has been identified as part of a malicious campaign that floods the npm registry with derivative packages, which can compromise the integrity of applications relying on it.
Vulnerability Detail
The vulnerability in the mad-vs-munchen package stems from its association with the tea.xyz token reward campaign. This campaign utilizes malicious scripts that modify the package.json file to remove private flags, alter version numbers, and generate random package names. The result is a continuous republishing of these variants, which pollutes the npm registry and can lead to security risks for developers and users alike.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall mad-vs-munchen
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 avoid using the mad-vs-munchen package until a secure version is released. Additionally, consider using alternative packages that offer similar functionalities without the associated risks.
Conclusion
The mad-vs-munchen package has been identified as containing malicious code that can compromise applications. It is essential to update or remove this package to ensure the security of your projects. Utilizing tools like Vulert can help monitor and manage vulnerabilities effectively.
See every vulnerability recorded for mad-vs-munchen →
FAQ
mad-vs-munchen is an npm package used in JavaScript applications, but it has been compromised by malicious code.
The vulnerability can lead to the injection of malicious code, potentially compromising your application's security and integrity.
You should update the package to the latest version or remove it from your project until a secure version is available.
You can use tools like Vulert, which monitors your package-lock.json file for vulnerabilities in real-time without requiring code access.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without signing up.