Malicious Code Injection in grieving_junglefowl_z3n Package
Summary
MAL-2025-94751: Malicious code in grieving_junglefowl_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 grieving_junglefowl_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 manipulate developer reputation scores. This package, like others in the campaign, is designed to automatically generate and publish derivative packages, leading to potential security risks and pollution of the npm registry.
Vulnerability Detail
The vulnerability in the grieving_junglefowl_z3n package originates from its inclusion in a malicious campaign that modifies package.json files to remove private flags and change version numbers. It generates random package names and continuously republishes variants, which can lead to the proliferation of malicious packages in the npm registry. This not only affects the integrity of the npm ecosystem but also poses risks to developers who may unknowingly use these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall grieving_junglefowl_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 avoid using the grieving_junglefowl_z3n package and look for alternative packages that provide similar functionality without the associated risks. Additionally, you can monitor your package-lock.json file for any changes that may indicate the presence of malicious packages.
Conclusion
The grieving_junglefowl_z3n package is part of a malicious campaign that poses significant risks to developers and the npm ecosystem. It is crucial to monitor your dependencies and take necessary actions to mitigate these vulnerabilities. Regularly updating packages and using tools like Vulert can help maintain the security of your applications.
See every vulnerability recorded for grieving_junglefowl_z3n →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, known for generating and publishing malicious packages.
The vulnerability can lead to the injection of malicious code into your application, potentially compromising its security and integrity.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
If no patched version is available, consider removing the package from your project and looking for safer alternatives.
Using compromised packages can lead to security breaches, data leaks, and damage to your application's reputation.