Critical Malicious Code Vulnerability in typescript-react-query Package
Summary
MAL-2026-1553: Malicious code in typescript-react-query (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 typescript-react-query package is a library designed for managing server state in React applications using TypeScript. It provides hooks for fetching, caching, and synchronizing server data with the UI. However, this package has been found to contain malicious code that compromises the security of any system where it is installed.
Vulnerability Detail
The vulnerability originates from the presence of embedded malicious code within the typescript-react-query package. This code can lead to a complete compromise of any computer that has the package installed, allowing unauthorized access to sensitive information such as secrets and keys. The ramifications of this vulnerability are severe, as it may grant an external entity full control over the affected system, making it imperative for users to act swiftly.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall typescript-react-query
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
Currently, there are no effective workarounds to mitigate the risks associated with this vulnerability other than removing the package entirely.
Conclusion
The typescript-react-query package has been identified as containing malicious code that poses a significant security risk. Users must take immediate action to uninstall the package and secure their systems. Regular monitoring for vulnerabilities, such as using Vulert, can help prevent future incidents.
See every vulnerability recorded for typescript-react-query →
FAQ
You should uninstall the typescript-react-query package immediately and rotate any secrets or keys stored on the affected system.
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 requiring any signup.
No, there is currently no patched version available for the typescript-react-query package.
Failing to remove the package may result in unauthorized access to your system, leading to potential data breaches and loss of sensitive information.
It is highly recommended to avoid using typescript-react-query until the issue is resolved and a safe version is released.