Malicious Code Vulnerability in tdm-react Package
Summary
MAL-2025-192877: Malicious code in tdm-react (npm). Affects tdm-react versions 2.9.0. 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
tdm-react is an npm package designed for building user interfaces in React applications. It provides various components and utilities that streamline the development process. However, it has recently been identified as containing malicious code, which poses a significant risk to applications that depend on it.
Vulnerability Detail
The vulnerability originates from a malicious code injection in version 2.9.0 of the tdm-react package. This malicious code can potentially compromise the security of applications using this package, leading to unauthorized access, data breaches, or other harmful actions. The specific technical details of the malicious code have not been disclosed, but its presence in the package is confirmed by security researchers.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall tdm-react
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 tdm-react package from your project until a safe version is released. This can be done using the command: npm uninstall tdm-react. Consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The tdm-react package has been identified as containing malicious code, posing a significant risk to applications that utilize it. It is crucial to update to a patched version or remove the package entirely to safeguard your application. Utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.
See every vulnerability recorded for tdm-react →
FAQ
tdm-react is an npm package used for building user interfaces in React applications, offering various components and utilities.
The vulnerability involves malicious code that can compromise the security of applications using the package, potentially leading to unauthorized access or data breaches.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit the Vulert playground at Vulert Scanner to check if your application is affected without needing to sign up.
You should immediately update the tdm-react package to the latest patched version using the command: npm update tdm-react.
Yes, you can uninstall the tdm-react package temporarily using npm uninstall tdm-react and look for alternative packages.