Malicious Code Injection in lexical_eagle_z3n Package
Summary
MAL-2025-105101: Malicious code in lexical_eagle_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 lexical_eagle_z3n package is part of the npm ecosystem, primarily used for various JavaScript applications. It has been identified as part of a broader campaign that aims to exploit the npm registry by flooding it with malicious packages. These packages are designed to inflate developer reputation scores through automated publishing scripts, which can lead to significant pollution of the npm registry and compromise the integrity of the software supply chain.
Vulnerability Detail
The vulnerability in the lexical_eagle_z3n package originates from its association with the tea.xyz token reward campaign. This package contains malicious scripts that modify the package.json file by removing private flags, altering version numbers, and generating random package names. The continuous republishing of these variants can lead to a polluted npm registry, making it difficult for developers to find legitimate packages and potentially introducing security risks into their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall lexical_eagle_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 workaround, avoid using the lexical_eagle_z3n package and any packages that may depend on it. Regularly audit your package-lock.json file for any malicious dependencies. You can also use tools like Vulert to monitor your project for vulnerabilities without requiring code access. For instance, you can check your application using the Vulert playground at https://vulert.com/scanner.
Conclusion
The lexical_eagle_z3n package poses a significant risk due to its malicious code that modifies project files and floods the npm registry. It is crucial for developers to remove this package and monitor their projects for vulnerabilities to maintain the integrity of their applications.
See every vulnerability recorded for lexical_eagle_z3n →
FAQ
lexical_eagle_z3n is an npm package that has been identified as part of a malicious campaign to inflate developer reputation scores through automated publishing.
The vulnerability can lead to the introduction of malicious code into your application, potentially compromising its security and integrity.
You should uninstall the lexical_eagle_z3n package immediately and check for any dependencies that may rely on it.
You can use tools like Vulert, which allows you to monitor and alert 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 your application for vulnerabilities without requiring any signup.