CVE-2024-24558 json
react-query-streamed-hydration xss
published 2024-01-30 2 y ago modified 2026-09-10 1 mo ago also GHSA-997g-27x8-43rf , EUVD-2024-0312
- cvss
- 8.2
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 32%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm @tanstack/react-query-next-experimental 5.18.0
- TanStack query 5.18.0
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.39% chance of exploitation in the next 30 days, higher than 32% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N |
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 3.1 | 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | @tanstack/react-query-next-experimental | >=5.0.0, <5.18.0 |
5.18.0 |
Affected products
- TanStack query
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/TanStack/query/commit/f2ddaf2536e8b71d2da88a9310ac9a48c13512a1
web, patch
-
github.com
/TanStack/query/security/advisories/GHSA-997g-27x8-43rf
web, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-24558
advisory
-
github.com
/TanStack/query
package
Sources
- CVE List CVE-2024-24558
- GitHub Advisory GHSA-997g-27x8-43rf
- NVD CVE-2024-24558
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.