Malicious Code Injection in considerable_piranha_z3n Package
Summary
MAL-2025-100878: Malicious code in considerable_piranha_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 considerable_piranha_z3n package is part of the npm ecosystem, often associated with token reward campaigns. It is designed to facilitate the automatic generation and publication of derivative packages. However, this package has been identified as malicious, containing scripts that manipulate package metadata and flood the npm registry with unwanted variants.
Vulnerability Detail
The vulnerability originates from the package's malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is intended to inflate developer reputation scores for token rewards, leading to potential security risks such as registry pollution and unauthorized access to sensitive data.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall considerable_piranha_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 considerable_piranha_z3n package and instead utilize alternative packages that provide similar functionality without the associated risks. Additionally, regularly audit your package dependencies using tools like npm audit.
Conclusion
The considerable_piranha_z3n package poses significant security risks due to its malicious code that alters package metadata and floods the npm registry. It is crucial to remove this package and monitor for updates to safeguard your application.
See every vulnerability recorded for considerable_piranha_z3n →
FAQ
It is an npm package associated with token reward campaigns, designed to automate the generation and publication of derivative packages.
The vulnerability can lead to registry pollution, unauthorized access to sensitive data, and potential security breaches.
You should remove the considerable_piranha_z3n package from your project and monitor for any updates or patches.
Yes, you can use the Vulert playground at Vulert Scanner to check for vulnerabilities in your application without requiring a signup.
You can use tools like npm audit and Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time.