Malicious Code Injection in samehada-uzsr7 Package: A Threat to npm Users
Summary
MAL-2025-165719: Malicious code in samehada-uzsr7 (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-uzsr7 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 capabilities, leading to significant security risks for developers and users alike.
Vulnerability Detail
The vulnerability in the samehada-uzsr7 package originates from its involvement in the tea.xyz token reward campaign. This campaign has been flooding the npm registry with packages that contain malicious scripts designed to manipulate package metadata. Specifically, the malicious payload alters the package.json file by removing private flags, changing version numbers, and generating random package names. This behavior not only inflates developer reputation scores but also pollutes the npm registry, potentially leading to the distribution of compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall samehada-uzsr7
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-uzsr7 package from your project by executing the following command: 'npm uninstall samehada-uzsr7'. This will prevent any malicious code from executing until a patch is available.
Conclusion
The samehada-uzsr7 package poses a significant security threat due to its malicious code injection capabilities. It is essential for developers to stay vigilant, regularly update their dependencies, and utilize tools like Vulert to monitor for vulnerabilities in their projects.
See every vulnerability recorded for samehada-uzsr7 →
FAQ
The samehada-uzsr7 package is an npm package that has been identified as part of a malicious campaign aimed at manipulating package metadata for fraudulent purposes.
The vulnerability can lead to the injection of malicious code into your project, potentially compromising your application's integrity and security.
If you have installed the samehada-uzsr7 package, it is recommended to uninstall it immediately and check for any unauthorized changes in your project.
You can use tools like Vulert, which monitors your package-lock.json file to alert you in real-time for open-source vulnerabilities without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.