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

- Severity: High 8.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.55%, higher than 39% of CVEs (2026-11-30)
- Published: 2024-01-30T19:36:48.810Z
- Modified: 2026-09-10T03:50:09.287Z
- Also known as: GHSA-997g-27x8-43rf
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- TanStack query: >=5.0.0, < 5.18.0; from 5.0.0 before 5.18.0
- @tanstack/react-query-next-experimental (npm): from 5.0.0 before 5.18.0
- tanstack react-query-next-experimental: from 5.0.0 before 5.18.0

## Every score

- GitHub_M: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`
- GitHub: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/TanStack/query/security/advisories/GHSA-997g-27x8-43rf> (vendor-advisory, web)
- <https://github.com/TanStack/query/commit/f2ddaf2536e8b71d2da88a9310ac9a48c13512a1> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-24558> (advisory)
- <https://github.com/TanStack/query> (package)

## Sources

- CVE List: [CVE-2024-24558](https://www.cve.org/CVERecord?id=CVE-2024-24558), CVE Terms of Use, modified 2024-08-23
- GitHub Advisory Database: [GHSA-997g-27x8-43rf](https://github.com/advisories/GHSA-997g-27x8-43rf), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-24558](https://nvd.nist.gov/vuln/detail/CVE-2024-24558), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-24558 · Whole record: https://cve.day/CVE-2024-24558.json · Rebuilt by cve.day 2026-11-25T22:58:36.451Z
