# CVE-2024-24558: react-query-streamed-hydration xss

- Priority: **Prioritise**
- Reason: Severe, CVSS 8.2 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2024-01-30 · Modified: 2024-08-23
- Aliases: GHSA-997g-27x8-43rf
- Record: https://cvemate.com/vulnerability/CVE-2024-24558 · JSON: https://cvemate.com/vulnerability/CVE-2024-24558/json

## Description

```text
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.
```

## Signals

- CVSS: 8.2 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
- EPSS: 0.385%, percentile 34.662%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- @tanstack react-query-next-experimental (Npm): ≥ 5.0.0, \< 5.18.0
- tanstack query: ≥ 5.0.0, \< 5.18.0
- tanstack react-query-next-experimental: ≥ 5.0.0, \< 5.18.0

## References

- <https://github.com/TanStack/query/security/advisories/GHSA-997g-27x8-43rf>
- <https://github.com/TanStack/query/commit/f2ddaf2536e8b71d2da88a9310ac9a48c13512a1>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-24558>
- <https://github.com/TanStack/query>

---

Data as of 2026-12-05T07:29:33.134Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
