Malicious Code Injection in samehada-fhzhs-r7 Package
Summary
MAL-2025-165708: Malicious code in samehada-fhzhs-r7 (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-fhzhs-r7 package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate the generation and publication of derivative packages, which can inflate developer reputation scores for token rewards. However, it has been identified as containing malicious code that compromises its integrity and the security of the npm registry.
Vulnerability Detail
The vulnerability in the samehada-fhzhs-r7 package originates from its malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially harming developers who rely on the integrity of the ecosystem. The malicious scripts (auto.js, autopublish.js, etc.) are designed to automate this process, making it difficult to detect and mitigate.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall samehada-fhzhs-r7
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 remove the samehada-fhzhs-r7 package from your project by executing the following command: npm uninstall samehada-fhzhs-r7. This will prevent any malicious activity associated with the package until a fix is applied.
Conclusion
The samehada-fhzhs-r7 package contains a significant vulnerability that poses risks to developers and the integrity of the npm ecosystem. It is crucial to take immediate action by updating or uninstalling the package to mitigate potential threats.
See every vulnerability recorded for samehada-fhzhs-r7 →
FAQ
The samehada-fhzhs-r7 package is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The vulnerability can lead to the modification of your package.json file, removal of private flags, and the generation of random package names, which can compromise your project's integrity.
Yes, you can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities in your software using just package-lock.json. You can check your application for vulnerabilities using the Vulert playground without any signup.
If you cannot update the package, it is recommended to uninstall it as a temporary measure to prevent any malicious activity.
More information can be found in the vulnerability details provided by sources like Amazon Inspector and the npm registry.