Malicious Code Injection in appalling_lion_z3n Package - npm Vulnerability
Summary
MAL-2025-99503: Malicious code in appalling_lion_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 appalling_lion_z3n package is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. The primary function of such packages is to manipulate developer reputation scores through the automatic generation and publication of derivative packages.
Vulnerability Detail
The vulnerability in the appalling_lion_z3n package stems from its malicious code that modifies the package.json file. This code removes private flags, alters version numbers, and generates random package names, leading to the pollution of the npm registry. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which incentivizes the creation of such malicious packages. The ramifications include potential security risks for developers who unknowingly install these packages, as well as the degradation of the npm ecosystem's integrity.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall appalling_lion_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, consider using a tool like Vulert to monitor your package-lock.json for vulnerabilities. Vulert provides real-time alerts for open-source vulnerabilities without requiring code access or installation. You can also check if your application is affected by this vulnerability using the Vulert playground at https://vulert.com/scanner.
Conclusion
The appalling_lion_z3n package poses a significant security risk due to its malicious code designed to manipulate npm registry data. It is crucial for developers to remove this package and utilize monitoring tools like Vulert to safeguard their projects from similar vulnerabilities in the future.
See every vulnerability recorded for appalling_lion_z3n →
FAQ
The appalling_lion_z3n package is an npm package associated with the tea.xyz token reward campaign, known for containing malicious code.
The malicious code modifies your package.json file, potentially leading to security vulnerabilities and the pollution of the npm registry.
You can use tools like Vulert to monitor your package-lock.json for vulnerabilities and check if your project is affected.
You should uninstall the appalling_lion_z3n package immediately using the command: npm uninstall appalling_lion_z3n.
Regularly monitor your dependencies using tools like Vulert and keep your packages updated to their latest secure versions.