Malicious Code Injection in samehada-hzios-rc7 Package
Summary
MAL-2025-165713: Malicious code in samehada-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 samehada-hzios-rc7 package is part of the npm ecosystem, which is widely used for JavaScript package management. This package has been identified as part of a malicious campaign that floods the npm registry with derivative packages. These packages are designed to manipulate developer reputation scores through automated publishing scripts, which can lead to significant issues in the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in the samehada-hzios-rc7 package stems from its involvement in a malicious campaign that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior not only compromises the integrity of the npm registry but also poses risks to developers who may unknowingly use these compromised packages. The malicious payload can lead to a polluted registry, making it difficult for developers to find legitimate packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall samehada-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 samehada-hzios-rc7 package and look for alternative packages that provide similar functionality without the associated risks. Additionally, you can monitor your project for any dependencies that may have been affected by this malicious package.
Conclusion
The samehada-hzios-rc7 package poses a significant risk due to its malicious code that alters package metadata and floods the npm registry. It is essential for developers to remove this package and monitor their projects for vulnerabilities to maintain the integrity of their applications.
See every vulnerability recorded for samehada-hzios-rc7 →
FAQ
The samehada-hzios-rc7 package is an npm package that has been identified as part of a malicious campaign to manipulate developer reputation scores through automated publishing.
This vulnerability can lead to the inclusion of malicious code in your project, potentially compromising its security and integrity.
If you have installed the samehada-hzios-rc7 package, it is crucial to remove it from your project immediately and check for any other affected dependencies.
You can use tools like Vulert, which monitors your package-lock.json file to alert you in real-time for open-source vulnerabilities. You can check your application using the Vulert playground without any signup.
Yes, it is advisable to look for alternative packages that provide similar functionality without the associated risks of malicious code.