Malicious Code Injection in madr-vs-munchen Package - npm Vulnerability
Summary
MAL-2025-158998: Malicious code in madr-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 madr-vs-munchen package is part of the npm ecosystem, which is widely used for JavaScript package management. This package, like many others, is intended to facilitate the development of applications by providing reusable code. However, it has been identified as part of a malicious campaign that exploits npm's publishing capabilities, leading to significant security concerns.
Vulnerability Detail
The madr-vs-munchen package contains malicious code that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is part of a broader scheme to inflate developer reputation scores for token rewards associated with the tea.xyz protocol. The malicious payload continuously republishes variants of the package, polluting the npm registry and potentially compromising other projects that depend on it.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall madr-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 measure, you can avoid using the madr-vs-munchen package and replace it with a known safe alternative. Always verify the integrity of packages before including them in your project.
Conclusion
The madr-vs-munchen package poses a significant security risk due to its malicious code that alters package metadata and floods the npm registry. It is crucial for developers to remove this package from their projects and monitor their dependencies for vulnerabilities using tools like Vulert.
See every vulnerability recorded for madr-vs-munchen →
FAQ
The madr-vs-munchen package is an npm package that has been identified as malicious, designed to manipulate package metadata and publish variants to the npm registry.
If your project depends on the madr-vs-munchen package, it may be at risk of having its package.json modified, leading to potential security breaches and dependency issues.
You should uninstall the madr-vs-munchen package immediately using 'npm uninstall madr-vs-munchen' and review your project's dependencies for any other potentially malicious packages.
You can use tools like Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time. You can check your application against known vulnerabilities without any signup at the Vulert playground.
Yes, consider using well-known and actively maintained packages that serve similar functionality but have a good reputation in the community.