Malicious Code Injection in mild_sawfish-notthedevs Package
Summary
MAL-2025-105838: Malicious code in mild_sawfish-notthedevs (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 mild_sawfish-notthedevs package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate token rewards through the generation and publication of derivative packages. However, it has been identified as containing malicious code that compromises its integrity and the security of applications using it.
Vulnerability Detail
The vulnerability originates from the package's malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is intended to inflate developer reputation scores for token rewards, leading to pollution of the npm registry. The ramifications include potential exposure of sensitive data, unauthorized access to systems, and the proliferation of untrustworthy packages in the ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall mild_sawfish-notthedevs
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 measure, you can avoid using the mild_sawfish-notthedevs package and replace it with a verified alternative that does not exhibit malicious behavior. Always review the source and reputation of packages before integrating them into your project.
Conclusion
The mild_sawfish-notthedevs package has been identified as containing malicious code that poses significant risks to applications using it. It is crucial to remove this package and monitor your dependencies for vulnerabilities to maintain the security of your projects.
See every vulnerability recorded for mild_sawfish-notthedevs →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The malicious code can modify your package.json file, remove private flags, and publish untrustworthy packages, potentially compromising your application's security.
You should uninstall the package immediately using 'npm uninstall mild_sawfish-notthedevs' and check your project for any unauthorized changes.
You can use tools like Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time 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 signing up.