Malicious Code Detected in glorious_perch_z3n: npm Package Vulnerability
Summary
MAL-2025-94708: Malicious code in glorious_perch_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 glorious_perch_z3n 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. These packages often include scripts that automatically generate and publish derivative packages, leading to potential security risks and reputation inflation for developers.
Vulnerability Detail
The vulnerability in glorious_perch_z3n stems from its inclusion in a malicious campaign that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior can lead to the pollution of the npm registry, making it difficult for developers to trust the integrity of packages. The malicious payload can also compromise the security of applications that depend on this package, potentially leading to further exploitation.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall glorious_perch_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
If an immediate update is not possible, consider removing the glorious_perch_z3n package from your project. You can do this by executing the following command: npm uninstall glorious_perch_z3n. Additionally, monitor your package-lock.json file for any signs of malicious modifications.
Conclusion
The glorious_perch_z3n package has been identified as containing malicious code that poses significant risks to applications using it. It is crucial for developers to take immediate action by updating or removing the package to ensure the security of their projects. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.
See every vulnerability recorded for glorious_perch_z3n →
FAQ
glorious_perch_z3n is an npm package that has been identified as part of a malicious campaign targeting the npm registry.
The vulnerability can lead to the pollution of the npm registry and compromise the security of applications that depend on this package.
You should update the package to the latest version or remove it from your project to mitigate the risk.
You can use tools like Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time without requiring code access.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without signing up.