Malicious Code Injection in wilful_panda_z3n: A Threat to npm Ecosystem
Summary
MAL-2025-97377: Malicious code in wilful_panda_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 'wilful_panda_z3n' is part of the npm ecosystem, which is widely used for JavaScript package management. It is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. These packages often contain scripts that manipulate package metadata and publish numerous derivative packages to inflate developer reputation scores.
Vulnerability Detail
The vulnerability in 'wilful_panda_z3n' originates from its association with malicious scripts designed to modify the package.json file. These scripts remove private flags, alter version numbers, and generate random package names, leading to the continuous republishing of variants that pollute the npm registry. This can result in significant reputational damage for developers and potential security risks for applications relying on these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall wilful_panda_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 remove the 'wilful_panda_z3n' package from your project by executing 'npm uninstall wilful_panda_z3n'. This will prevent any malicious code from executing until a secure version is available.
Conclusion
The 'wilful_panda_z3n' package poses a significant threat due to its malicious code that alters package metadata and floods the npm registry. It is crucial for developers to update or remove this package to safeguard their applications. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.
See every vulnerability recorded for wilful_panda_z3n →
FAQ
The main issue is that it contains malicious code that modifies package metadata and floods the npm registry with derivative packages.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.
Using this package can lead to reputational damage, security vulnerabilities, and potential conflicts with other packages in your project.
Regularly audit your dependencies and use tools like Vulert to monitor for open-source vulnerabilities in real-time.
If an immediate update is not possible, consider removing the package from your project as a temporary measure.