Malicious Code Injection in kennedy-teadev Package: npm Vulnerability Overview
Summary
MAL-2025-104760: Malicious code in kennedy-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 kennedy-teadev package is part of the npm ecosystem, primarily used for JavaScript development. It is designed to facilitate various development tasks but has been compromised by malicious actors. This package is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with harmful packages. The vulnerability stems from the package's ability to modify its own configuration files, leading to potential exploitation.
Vulnerability Detail
The vulnerability in the kennedy-teadev package involves the presence of malicious code that alters the package.json file. This code removes private flags, changes version numbers, and generates random package names to inflate developer reputation scores for token rewards. The malicious payload continuously republishes these variants, polluting the npm registry and potentially affecting other developers who may unknowingly use these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall kennedy-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 kennedy-teadev package from your project by executing 'npm uninstall kennedy-teadev'. This will prevent any malicious code from executing until a secure version is available.
Conclusion
The kennedy-teadev package has been identified as containing malicious code that poses a significant risk to developers using it. It is essential to take immediate action by updating or uninstalling the package to safeguard your projects. Utilizing tools like Vulert can help monitor for such vulnerabilities in the future.
See every vulnerability recorded for kennedy-teadev →
FAQ
The kennedy-teadev package is an npm package used in JavaScript development, but it has been compromised with malicious code.
The malicious code modifies your package.json file, potentially leading to security vulnerabilities and reputation damage in the npm registry.
You should immediately uninstall the kennedy-teadev package and check for any updates or patches that may address the vulnerability.
Yes, you can use Vulert, which monitors open-source vulnerabilities in your software using just package-lock.json. You can check your application for vulnerabilities without any signup at the Vulert playground.
Regularly update your packages, use tools like Vulert for monitoring, and review package dependencies carefully before installation.