Malicious Code Injection in philosophical_pheasant_z3n: A Threat to npm Ecosystem
Summary
MAL-2025-107068: Malicious code in philosophical_pheasant_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 'philosophical_pheasant_z3n' is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package, like others in the campaign, is designed to manipulate npm's publishing system by creating and publishing numerous derivative packages with randomized names. Its primary function is to inflate developer reputation scores for token rewards, which ultimately leads to pollution of the npm registry.
Vulnerability Detail
The vulnerability in 'philosophical_pheasant_z3n' stems from its malicious code that modifies the package.json file to remove private flags and alter version numbers. It generates random package names, primarily themed around Indonesian culture, and continuously republishes these variants. This behavior not only compromises the integrity of the npm registry but also poses risks to developers who may unknowingly use these compromised packages, leading to potential security breaches in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall philosophical_pheasant_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 'philosophical_pheasant_z3n' package and look for alternative packages that provide similar functionality without the associated risks. Additionally, regularly audit your npm packages using tools like 'npm audit' to identify and mitigate vulnerabilities.
Conclusion
The 'philosophical_pheasant_z3n' package poses a significant risk due to its malicious code that alters package metadata and floods the npm registry with compromised packages. It is crucial for developers to remove this package and monitor their dependencies for vulnerabilities to maintain the security of their applications.
See every vulnerability recorded for philosophical_pheasant_z3n →
FAQ
'philosophical_pheasant_z3n' is an npm package involved in a token reward campaign that manipulates the npm registry.
The malicious code can compromise your application's integrity by introducing unwanted changes and potentially harmful packages.
You should uninstall the package immediately using 'npm uninstall philosophical_pheasant_z3n' and check for any other affected packages.
You can use tools like Vulert, which monitors your package-lock.json for vulnerabilities in real-time without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check for vulnerabilities in your application without signing up.