Malicious Code Injection in imaginative_partridge_z3n Package
Summary
MAL-2025-94928: Malicious code in imaginative_partridge_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 imaginative_partridge_z3n 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 components. However, it has been identified as part of a malicious campaign that exploits npm's publishing system, leading to potential security risks for developers and their applications.
Vulnerability Detail
The vulnerability originates from the package being associated with a token reward campaign that floods npm with malicious packages. It contains scripts designed to automatically generate and publish derivative packages with randomized names, which can inflate developer reputation scores. The malicious payload modifies the package.json file to remove private flags, alters version numbers, and continuously republishes variants, thereby polluting the npm registry. This can lead to unintentional use of compromised packages, exposing applications to security risks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall imaginative_partridge_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 imaginative_partridge_z3n package and look for alternative packages that provide similar functionality without the associated risks. Additionally, you can monitor your project for any unintended dependencies that may include this malicious package.
Conclusion
The imaginative_partridge_z3n package poses a significant security risk due to its malicious code designed to manipulate the npm registry. It is crucial for developers to remove this package and monitor their projects for any vulnerabilities to ensure the integrity and security of their applications.
See every vulnerability recorded for imaginative_partridge_z3n →
FAQ
It is an npm package that has been identified as part of a malicious campaign to manipulate the npm registry.
If your application uses this package, it may inadvertently include malicious code that can compromise security and functionality.
You should remove the package immediately and check for any other dependencies that may be affected.
You can use tools like Vulert, which monitors your package-lock.json file to alert you in real-time for open-source vulnerabilities.
Yes, you can use the Vulert playground at Vulert Scanner to check for vulnerabilities in your application without any signup.