Malicious Code Injection in wrong_harrier_z3n Package - npm Vulnerability
Summary
MAL-2025-92335: Malicious code in wrong_harrier_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 wrong_harrier_z3n package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate the automatic generation and publication of derivative packages, which can inflate developer reputation scores for token rewards. However, it has been identified as containing malicious code that compromises its integrity and the npm registry.
Vulnerability Detail
The vulnerability originates from the package's malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially affecting other developers and users relying on legitimate packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall wrong_harrier_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 the following command to uninstall the affected package: npm uninstall wrong_harrier_z3n. This will help mitigate the risk associated with the malicious code until a fixed version is released.
Conclusion
The wrong_harrier_z3n package has been identified as containing malicious code that compromises the npm registry and affects developers. Immediate action is required to uninstall the package and monitor for updates. Utilizing tools like Vulert can help in maintaining the security of your projects.
See every vulnerability recorded for wrong_harrier_z3n →
FAQ
The wrong_harrier_z3n package is an npm package that is part of a token reward campaign, designed to generate and publish derivative packages automatically.
The malicious code modifies your package.json file, removes private flags, and generates random package names, which can lead to pollution of the npm registry and affect your project's integrity.
You should uninstall the wrong_harrier_z3n package immediately to prevent any potential issues. Use the command: npm uninstall wrong_harrier_z3n.
As of now, there is no patched version available. It is crucial to monitor the package for updates and apply them as soon as they are released.
You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just your package-lock.json. You can also check if your application is affected by this vulnerability using the Vulert playground at Vulert Scanner.