Malicious Code Injection in samehada-uazsr7: A Threat to npm Packages
Summary
MAL-2025-165717: Malicious code in samehada-uazsr7 (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 samehada-uazsr7 is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. These packages often include scripts designed to manipulate package metadata and inflate developer reputation scores, posing significant risks to users and the integrity of the npm registry.
Vulnerability Detail
The vulnerability in samehada-uazsr7 originates from its association with malicious scripts that modify the package.json file. These scripts remove private flags, alter version numbers, and generate random package names, leading to the continuous republishing of variants that pollute the npm registry. This not only compromises the security of applications using these packages but also undermines the trustworthiness of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall samehada-uazsr7
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-uazsr7 package from your project by executing the following command: npm uninstall samehada-uazsr7. This will prevent any malicious code from executing while you seek a safer alternative or wait for a patch.
Conclusion
The samehada-uazsr7 package poses a significant security risk due to its malicious code designed to manipulate npm package metadata. It is crucial for developers to stay informed about such vulnerabilities and take immediate action to protect their applications. Regularly updating packages and utilizing tools like Vulert can help maintain the security of your software.
See every vulnerability recorded for samehada-uazsr7 →
FAQ
samehada-uazsr7 is an npm package that has been linked to malicious activities, specifically designed to manipulate package metadata for fraudulent purposes.
The vulnerability can lead to unauthorized modifications of your application's dependencies, potentially introducing security risks and instability.
You should uninstall the package immediately and check for any updates or patches that may address the vulnerability.
Yes, you can use Vulert to monitor your application for open-source vulnerabilities in real-time. Vulert analyzes your package-lock.json file to provide alerts.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.