Malicious Code Detected in mdfyot-devapptea: A Threat to npm Users
Summary
MAL-2025-105727: Malicious code in mdfyot-devapptea (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
mdfyot-devapptea is an npm package that is part of the tea.xyz token reward campaign. This package is designed to interact with the npm ecosystem, allowing developers to publish and manage their JavaScript packages. However, it has been identified as containing malicious code that compromises its integrity and the security of the npm registry.
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 the continuous republishing of variants that pollute the npm registry. The ramifications include potential security risks for developers who unknowingly use this package, as it can lead to the installation of compromised software.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall mdfyot-devapptea
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 avoid using the mdfyot-devapptea package until a secure version is released. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The mdfyot-devapptea package poses a significant security risk due to its malicious code that alters package metadata and republishing behavior. It is essential for developers to take immediate action by updating or removing the package and utilizing tools like Vulert for ongoing vulnerability monitoring.
See every vulnerability recorded for mdfyot-devapptea →
FAQ
mdfyot-devapptea is an npm package involved in the tea.xyz token reward campaign, which has been identified to contain malicious code.
The malicious code can modify your package.json file, remove private flags, and republish variants, potentially compromising your project's integrity.
If you have installed mdfyot-devapptea, it is crucial to update or remove it immediately to prevent any security risks.
Yes, you can use tools like Vulert, which monitors and alerts you in real-time for open-source vulnerabilities using just your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.