Malicious Code Injection in useful_heron_z3n: A Threat to npm Packages
Summary
MAL-2025-91553: Malicious code in useful_heron_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 'useful_heron_z3n' is part of a broader campaign targeting npm, designed to exploit the npm registry by flooding it with malicious packages. These packages are often linked to token reward schemes, where developers are incentivized to publish numerous packages to inflate their reputation. The malicious nature of 'useful_heron_z3n' lies in its ability to modify package metadata and republish variants, thereby polluting the registry and potentially compromising other packages.
Vulnerability Detail
The vulnerability in 'useful_heron_z3n' originates from its inclusion in a series of malicious packages that automate the generation and publication of derivative packages. This process involves altering the package.json file to remove private flags, changing version numbers, and creating random package names. The ramifications include the potential for developers to unknowingly install compromised packages, leading to security breaches and loss of integrity in the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall useful_heron_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 'useful_heron_z3n' and any other packages that are part of the tea.xyz token reward campaign. Regularly audit your package dependencies using tools like npm audit to identify and mitigate risks from malicious packages.
Conclusion
The 'useful_heron_z3n' package poses a significant threat to the integrity of npm packages due to its malicious behavior of modifying and republishing package metadata. It is crucial for developers to be vigilant and remove any affected packages from their projects to maintain security. Regular audits and monitoring tools like Vulert can help in identifying and mitigating such vulnerabilities.
See every vulnerability recorded for useful_heron_z3n →
FAQ
'useful_heron_z3n' is an npm package that has been identified as malicious, designed to exploit the npm registry by generating and republishing derivative packages.
If 'useful_heron_z3n' is included in your project, it can lead to the installation of compromised packages, potentially exposing your application to security risks.
You should uninstall 'useful_heron_z3n' immediately using 'npm uninstall useful_heron_z3n' and check for any dependencies that may be affected.
You can use tools like npm audit to regularly check for vulnerabilities in your project dependencies. Additionally, Vulert can monitor your package-lock.json for real-time alerts on open-source vulnerabilities.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.