Malicious Code Injection in sandra-teadev Package
Summary
MAL-2025-108346: Malicious code in sandra-teadev (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 sandra-teadev package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate the automatic generation and publication of derivative packages, which can inflate developer reputation scores. However, it has been identified as containing malicious code that compromises the integrity of the npm registry.
Vulnerability Detail
The vulnerability originates from the sandra-teadev package, which includes scripts that modify the package.json file to remove private flags, alter version numbers, and generate random package names. This malicious behavior leads to the continuous republishing of variants, polluting the npm registry and potentially impacting developers who rely on these packages for legitimate purposes. The malicious payload can also lead to reputation damage for developers and security risks for applications that depend on these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall sandra-teadev
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 sandra-teadev package from your project using the following command: npm uninstall sandra-teadev. This will prevent any malicious code from executing in your application until a fix is available.
Conclusion
The sandra-teadev package has been identified as containing malicious code that poses significant risks to developers and their applications. It is crucial to take immediate action by updating or removing the package to safeguard your project from potential threats.
See every vulnerability recorded for sandra-teadev →
FAQ
The sandra-teadev package is an npm package associated with the tea.xyz token reward campaign, designed to automate the generation and publication of derivative packages.
The malicious code modifies your package.json file, removes private flags, and generates random package names, which can lead to reputation damage and security risks.
Yes, you can use Vulert to monitor and alert for open-source vulnerabilities in your software. You can check if your application is affected by this vulnerability using the Vulert playground at Vulert Scanner.
If a patched version is not available, it is recommended to uninstall the sandra-teadev package from your project to mitigate the risk.
Regularly monitor your dependencies for vulnerabilities using tools like Vulert, and keep your packages updated to the latest secure versions.