Malicious Code Injection in shawna-teadev: A Threat to npm Ecosystem
Summary
MAL-2025-108621: Malicious code in shawna-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 shawna-teadev package is part of the npm ecosystem, which is widely used for JavaScript development. This package, like many others, is intended to facilitate the development process by providing reusable code. However, it has been identified as part of a malicious campaign that exploits the npm registry to inflate developer reputation scores through the automatic generation and publication of derivative packages.
Vulnerability Detail
The shawna-teadev package contains malicious code that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is part of a broader scheme associated with the tea.xyz token reward campaign, which aims to pollute the npm registry by continuously republishing variants of the package. The ramifications include potential security risks for developers who unknowingly use these compromised packages, leading to reputational damage and possible data breaches.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall shawna-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, avoid using the shawna-teadev package and consider using alternative packages that provide similar functionality without the associated risks. Additionally, regularly audit your package dependencies using tools like npm audit.
Conclusion
The shawna-teadev package poses a significant threat to developers using the npm ecosystem due to its malicious code designed to manipulate package metadata and inflate developer reputation scores. It is crucial to remove this package and monitor your dependencies for similar vulnerabilities.
See every vulnerability recorded for shawna-teadev →
FAQ
shawna-teadev is an npm package that has been identified as part of a malicious campaign to manipulate the npm registry.
The malicious code can alter your package.json file, potentially leading to security vulnerabilities and the proliferation of unwanted packages in your project.
You should uninstall the shawna-teadev package immediately and check for any dependencies that may have been affected.
Yes, tools like Vulert can monitor your package-lock.json file to alert you in real-time for open-source vulnerabilities.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.