Malicious Code Injection in normal_pony_z3n Package - npm Vulnerability
Summary
MAL-2025-95664: Malicious code in normal_pony_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 normal_pony_z3n package is part of the npm ecosystem and has been identified as a malicious package associated with the tea.xyz token reward campaign. This package is designed to manipulate the npm registry by generating and publishing derivative packages with random names, which can inflate developer reputation scores for token rewards. Its functionality is compromised due to the presence of malicious scripts that alter package metadata.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious code within the normal_pony_z3n package. This code modifies the package.json file by removing private flags, changing version numbers, and generating random package names, which leads to the continuous republishing of these variants. The ramifications include potential pollution of the npm registry, unauthorized access to sensitive information, and damage to developer reputations. The malicious payload is executed through autopublish scripts that automate the creation and publication of these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall normal_pony_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, avoid using the normal_pony_z3n package and consider using alternative packages that provide similar functionality without the associated risks. Regularly audit your package dependencies to ensure no malicious packages are included.
Conclusion
The normal_pony_z3n package poses a significant security risk due to its malicious code that alters package metadata and pollutes the npm registry. It is crucial for developers to remove this package from their projects and monitor their dependencies for vulnerabilities. Utilizing tools like Vulert can help in maintaining a secure development environment.
See every vulnerability recorded for normal_pony_z3n →
FAQ
normal_pony_z3n is an npm package that has been identified as malicious, designed to manipulate the npm registry and inflate developer reputation scores.
The malicious code modifies your package.json file, potentially exposing sensitive information and leading to the pollution of the npm registry.
You should uninstall the normal_pony_z3n package immediately using the command npm uninstall normal_pony_z3n.
You can use Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time. You can check your application for vulnerabilities using the Vulert playground without any signup.
Yes, consider using other reputable packages that offer similar functionality without the risks associated with normal_pony_z3n.