Malicious Code Injection in loyal_nightingale_z3n Package
Summary
MAL-2025-88003: Malicious code in loyal_nightingale_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 loyal_nightingale_z3n package is part of the npm ecosystem, typically used for various JavaScript applications. It is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with packages that often contain malicious scripts. These scripts are designed to manipulate package metadata and inflate developer reputation scores, posing significant risks to developers and users alike.
Vulnerability Detail
This vulnerability originates from the malicious design of the loyal_nightingale_z3n package, which includes scripts that modify the package.json file. The scripts remove private flags, alter version numbers, and generate random package names, leading to the continuous republishing of these variants. This not only pollutes the npm registry but also compromises the integrity of the packages, potentially exposing users to further security risks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall loyal_nightingale_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 prevent the installation of this malicious package by using npm's package-lock.json to monitor your dependencies. Ensure that your project does not include loyal_nightingale_z3n in its dependencies. You can also use the following command to uninstall it if it is already installed: npm uninstall loyal_nightingale_z3n.
Conclusion
The loyal_nightingale_z3n package poses a significant security risk due to its malicious code that alters package metadata and floods the npm registry. It is crucial for developers to remove this package and monitor their dependencies to maintain the integrity and security of their applications.
See every vulnerability recorded for loyal_nightingale_z3n →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, often containing malicious scripts.
It can compromise the integrity of your application by modifying package metadata and potentially introducing further security risks.
You should uninstall the loyal_nightingale_z3n package immediately and monitor your dependencies for any malicious activity.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time by analyzing your package-lock.json.
You can use the Vulert playground at Vulert Scanner to check for vulnerabilities without needing to sign up.