Malicious Code Injection in thin_heron_0xrequest Package
Summary
MAL-2025-109607: Malicious code in thin_heron_0xrequest (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 thin_heron_0xrequest package is part of the npm ecosystem, often utilized for various JavaScript functionalities. However, it has been identified as part of a malicious campaign that exploits npm's package management system. This package is linked to the tea.xyz token reward scheme, which aims to inflate developer reputation scores through the automatic generation and publication of derivative packages.
Vulnerability Detail
The vulnerability originates from the package being part of a malicious campaign that includes scripts designed to manipulate the npm registry. The malicious code modifies the package.json file by removing private flags, altering version numbers, and generating random package names. This results in the continuous republishing of variants, which pollutes the npm registry and can lead to security risks for developers who unknowingly use these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall thin_heron_0xrequest
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 thin_heron_0xrequest package altogether and look for alternative packages that provide similar functionality without the associated risks.
Conclusion
The thin_heron_0xrequest package poses significant risks due to its malicious code designed to manipulate the npm registry. It is crucial for developers to remove this package and monitor their projects for vulnerabilities to maintain security.
See every vulnerability recorded for thin_heron_0xrequest →
FAQ
It is an npm package that has been identified as part of a malicious campaign targeting the npm registry.
Using this package can lead to security risks, including the potential for your application to be compromised or to inadvertently contribute to the pollution of the npm registry.
You should remove the thin_heron_0xrequest package from your project and look for safer alternatives.
Yes, you can use Vulert, which monitors and alerts you in real-time for open-source vulnerabilities using just your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check for vulnerabilities in your application without requiring any signup.