Malicious Code Injection in illegal_marsupial_z3n: A Threat to npm Packages
Summary
MAL-2025-94924: Malicious code in illegal_marsupial_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 package 'illegal_marsupial_z3n' is part of a series of npm packages that emerged during the tea.xyz token reward campaign. These packages are designed to manipulate the npm registry by generating and publishing derivative packages with randomized names. The primary function of these packages is to inflate developer reputation scores for token rewards, but they pose significant risks to the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in 'illegal_marsupial_z3n' stems from its malicious code that modifies the package.json file. This code removes private flags, alters version numbers, and generates random package names, leading to the continuous republishing of variants that pollute the npm registry. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which incentivizes the creation of such malicious packages. The ramifications include potential security risks for developers who unknowingly use these packages, as well as a compromised npm registry.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall illegal_marsupial_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, you can avoid using the 'illegal_marsupial_z3n' package and instead look for alternative packages that provide similar functionality without the associated risks. Always verify the integrity of packages before installation.
Conclusion
The 'illegal_marsupial_z3n' package poses a significant threat to the integrity of the npm ecosystem due to its malicious code that modifies package configurations and repopulates the registry with harmful variants. Developers should take immediate action to remove this package and monitor their projects for similar vulnerabilities.
See every vulnerability recorded for illegal_marsupial_z3n →
FAQ
'illegal_marsupial_z3n' is an npm package that has been identified as malicious, designed to manipulate the npm registry and inflate developer reputation scores.
Using 'illegal_marsupial_z3n' can lead to security risks, including the potential for your project to be associated with malicious activities and the pollution of the npm registry.
If you have installed 'illegal_marsupial_z3n', you should uninstall it immediately using the command 'npm uninstall illegal_marsupial_z3n' and look for secure alternatives.
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 for vulnerabilities using the Vulert playground without any signup.
There are no patches available for 'illegal_marsupial_z3n' as it is a malicious package. The best course of action is to remove it from your project.