CVE-2024-24558: react-query-streamed-hydration xss
Vulnerability summary
CVE-2024-24558 is a high (CVSS 8.2) vulnerability in tanstack query. EPSS estimates a 0.39% chance of exploitation in the next 30 days, higher than 34.6% of scored vulnerabilities.
Severe, CVSS 8.2 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
Source freshness unavailable
How is this decided?Timeline
- 30-01-2024PublishedVulnerability first disclosed.
- 23-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · NpmEcosystem advisory · calculated8.2HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
- NVDNIST6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NDiffers
EPSS trend
Probability
0.39%
Chance of exploitation in the next 30 days
Percentile
35%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.39% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Tanstack2 products
- query≥ 5.0.0, < 5.18.0
- react-query-next-experimental≥ 5.0.0, < 5.18.0
@tanstack1 product
- react-query-next-experimental≥ 5.0.0, < 5.18.0
2 vendors · 3 products
References
4 links- github.com/TanStack/query/security/advisories/GHSA-997g-27x8-43rfX Refsource CONFIRMWEBVendor Advisory
- github.com/TanStack/queryPACKAGE