What’s Vulnerable › Vulnerabilities
CVE-2024-24558: react-query-streamed-hydration xss
- Severity: medium (CVSS 6.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-01-30 · updated 2026-06-17
- Weakness: CWE-79
Description
TanStack Query supplies asynchronous state management, server-state utilities and data fetching for the web. The `@tanstack/react-query-next-experimental` NPM package is vulnerable to a cross-site scripting vulnerability. To exploit this, an attacker would need to either inject malicious input or arrange to have malicious input be returned from an endpoint. To fix this issue, please update to version 5.18.0 or later.
Affected products
- TanStack query: from 5.0.0 before 5.18.0 — fixed in 5.18.0
How to fix
Upgrade to a fixed version: TanStack query 5.18.0. Check the vendor advisory for mitigations.
References
- https://github.com/TanStack/query/commit/f2ddaf2536e8b71d2da88a9310ac9a48c13512a1
- https://github.com/TanStack/query/security/advisories/GHSA-997g-27x8-43rf
- https://github.com/TanStack/query/commit/f2ddaf2536e8b71d2da88a9310ac9a48c13512a1
- https://github.com/TanStack/query/security/advisories/GHSA-997g-27x8-43rf
Get alerted when CVE-2024-24558 or the next vulnerability affects your stack