Malicious Code Injection in logical_leopard_z3n: A Threat to npm Users
Summary
MAL-2025-98795: Malicious code in logical_leopard_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 'logical_leopard_z3n' is part of the npm ecosystem, primarily used for JavaScript development. It has been identified as part of a malicious campaign that floods the npm registry with derivative packages. These packages are designed to inflate developer reputation scores for token rewards, making them a significant threat to the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in 'logical_leopard_z3n' stems from its involvement in a malicious campaign that 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, polluting the npm registry and potentially compromising the security of applications that depend on these packages. The malicious code is designed to execute autopublish scripts that automate the creation and distribution of these harmful packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall logical_leopard_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, consider removing the 'logical_leopard_z3n' package from your project and replacing it with a trusted alternative. You can uninstall the package using the command: 'npm uninstall logical_leopard_z3n'.
Conclusion
The 'logical_leopard_z3n' package poses a significant threat due to its malicious code that alters package configurations and floods the npm registry. It is crucial for developers to be vigilant and remove such packages from their projects to maintain the integrity and security of their applications.
See every vulnerability recorded for logical_leopard_z3n →
FAQ
The main issue is that it contains malicious code that modifies package.json files and republishes variants to pollute the npm registry.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without any signup.
If you find 'logical_leopard_z3n' in your project, you should uninstall it immediately and look for a secure alternative.
Currently, there is no specific patch version mentioned for 'logical_leopard_z3n'. It is recommended to remove the package until a secure version is released.
Using this package can lead to security vulnerabilities in your application, including unauthorized access and data corruption due to the malicious code it contains.