Malicious Code Injection in dirty_monkey_z3n: npm Package Vulnerability
Summary
MAL-2025-101597: Malicious code in dirty_monkey_z3n (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 'dirty_monkey_z3n' 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 code that compromises its integrity and the security of the npm registry.
Vulnerability Detail
The vulnerability in 'dirty_monkey_z3n' originates from its malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of variants, ultimately polluting the npm registry. The implications of this vulnerability include potential exploitation by malicious actors to manipulate the npm ecosystem, leading to a loss of trust and security for developers relying on these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall dirty_monkey_z3n
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, avoid using the 'dirty_monkey_z3n' package and consider using alternative packages that provide similar functionality without the risk of malicious code. Additionally, regularly audit your dependencies using tools like npm audit to identify and mitigate vulnerabilities.
Conclusion
The 'dirty_monkey_z3n' package poses a significant security risk due to its malicious code that alters package configurations and floods the npm registry. It is crucial for developers to remove this package and monitor their dependencies to maintain the integrity and security of their projects.
See every vulnerability recorded for dirty_monkey_z3n →
FAQ
The 'dirty_monkey_z3n' package is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages.
This vulnerability can compromise the integrity of your project by introducing malicious code that modifies your package.json and floods the npm registry with unwanted packages.
If you have installed 'dirty_monkey_z3n', you should uninstall it immediately using 'npm uninstall dirty_monkey_z3n' and check your package-lock.json for any references.
Yes, tools like Vulert can monitor and alert you in real-time for open-source vulnerabilities in your software. You can check your application against known vulnerabilities using the Vulert playground without any signup.
To prevent similar vulnerabilities, regularly audit your dependencies, keep your packages updated, and use trusted sources for package installations.