Malicious Code Injection in samehadha-hzios-rc7: A Threat to npm Packages
Summary
MAL-2025-165746: Malicious code in samehadha-hzios-rc7 (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 samehadha-hzios-rc7 package is part of the npm ecosystem, which is widely used for JavaScript package management. This package, like many others, is intended to facilitate the development and deployment of applications by providing reusable code. However, it has been identified as part of a malicious campaign that exploits npm's publishing mechanisms to inflate developer reputation scores through the creation of derivative packages.
Vulnerability Detail
This vulnerability originates from the samehadha-hzios-rc7 package being associated with the tea.xyz token reward campaign. The malicious code embedded within this package is designed to modify the package.json file by removing private flags, altering version numbers, and generating random package names. This results in the continuous republishing of these variants, which pollutes the npm registry and can lead to significant security risks for developers who unknowingly integrate these packages into their projects.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall samehadha-hzios-rc7
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, you can avoid using the samehadha-hzios-rc7 package altogether. If you have already integrated it into your project, consider removing it and replacing it with a trusted alternative. Additionally, you can monitor your dependencies using tools like Vulert, which can alert you in real-time for open-source vulnerabilities in your software.
Conclusion
The samehadha-hzios-rc7 package poses a significant risk due to its malicious code designed to manipulate npm's publishing system. It is essential for developers to remove this package and monitor their dependencies to maintain the security of their applications.
See every vulnerability recorded for samehadha-hzios-rc7 →
FAQ
The samehadha-hzios-rc7 package is an npm package that has been identified as part of a malicious campaign to inflate developer reputation scores.
This vulnerability can lead to the pollution of the npm registry and may introduce malicious code into your project, compromising its security.
You should remove the samehadha-hzios-rc7 package from your project and replace it with a trusted alternative.
You can use tools like Vulert, which allows you to monitor and alert for open-source vulnerabilities in your software without requiring access to the code.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.