Malicious Code Injection in plain_hedgehog_0xrequest: npm Package Vulnerability
Summary
MAL-2025-107085: Malicious code in plain_hedgehog_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 package 'plain_hedgehog_0xrequest' is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. It is designed to facilitate the automatic generation and publication of derivative packages. This package is intended for developers looking to enhance their reputation scores within the tea protocol token rewards system. However, it has been compromised, leading to significant security concerns.
Vulnerability Detail
The vulnerability originates from malicious code embedded within the 'plain_hedgehog_0xrequest' package. This code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, which are then continuously republished to pollute the npm registry. The ramifications include potential exposure of sensitive data, unauthorized access to systems, and degradation of the npm ecosystem's integrity.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall plain_hedgehog_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 measure, avoid using the 'plain_hedgehog_0xrequest' package and consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The 'plain_hedgehog_0xrequest' package poses a significant security risk due to embedded malicious code. It is essential to remove this package from your project and monitor for updates. Utilizing tools like Vulert can help in identifying vulnerabilities in your application effectively.
See every vulnerability recorded for plain_hedgehog_0xrequest →
FAQ
It is an npm package linked to the tea.xyz token reward campaign, designed for automatic package generation.
The malicious code can compromise your project's integrity by altering package configurations and potentially exposing sensitive data.
Immediately uninstall the package using 'npm uninstall plain_hedgehog_0xrequest' and monitor for any updates or patches.
Yes, tools like Vulert can monitor your project for open-source vulnerabilities in real-time using just the package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected without requiring any signup.