Malicious Code Injection in objective_lamprey_z3n: A Threat to npm Packages
Summary
MAL-2025-95710: Malicious code in objective_lamprey_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 'objective_lamprey_z3n' is part of the npm ecosystem, which is widely used for JavaScript package management. It is designed to facilitate the development and sharing of code among developers. However, this package has been identified as part of a malicious campaign that aims to exploit the npm registry by flooding it with derivative packages that have randomized names, thereby inflating developer reputation scores for token rewards.
Vulnerability Detail
The vulnerability in 'objective_lamprey_z3n' stems from its association with 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, which pollutes the npm registry and can potentially compromise the integrity of other packages. The malicious payload is designed to execute autopublish scripts that automate the generation of these harmful packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall objective_lamprey_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 there is no direct workaround for this specific vulnerability, the best approach is to avoid using the 'objective_lamprey_z3n' package altogether. If you have already installed it, ensure to remove it from your project as mentioned in the 'how_to_fix' section.
Conclusion
The 'objective_lamprey_z3n' package poses a significant risk due to its malicious behavior aimed at manipulating the npm registry. It is crucial for developers to be aware of such vulnerabilities and take proactive measures to protect their applications by removing affected packages and utilizing monitoring tools.
See every vulnerability recorded for objective_lamprey_z3n →
FAQ
It is an npm package that has been identified as part of a malicious campaign aimed at flooding the npm registry with harmful derivative packages.
The vulnerability can lead to the pollution of the npm registry, potentially compromising the integrity of other packages and affecting your application's security.
No, there is currently no patched version available for 'objective_lamprey_z3n'. The recommended action is to uninstall the package.
You can use tools like Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file.
Yes, you can use the Vulert playground at Vulert Scanner to check for vulnerabilities in your application without any signup.