CVE-2024-24558
MEDIUM 6.1CVSS 3.1react-query-streamed-hydration Cross-site Scripting vulnerability
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.
- Published
- 30 Jan 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-997g-27x8-43rf
- Sources
- NVDJSONOSV GHSA-997g-27x8-43rfJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | tanstack | react-query-next-experimentalcpe:2.3:a:tanstack:react-query-next-experimental:*:*:*:*:*:node.js:*:* |
>= 5.0.0, < 5.18.0 | 5.18.0 |
| OSV | npm | @tanstack/react-query-next-experimental | >= 5.0.0, < 5.18.0 | 5.18.0 |
References
- https://github.com/TanStack/query/commit/f2ddaf2536e8b71d2da88a9310ac9a48c13512a1 · Patch, WEB
- https://github.com/TanStack/query/security/advisories/GHSA-997g-27x8-43rf · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-24558 · ADVISORY
- https://github.com/TanStack/query · PACKAGE
History
- 25 Nov 2026 20:54 UTC · NVD: first stored (published 30 Jan 2024)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 30 Jan 2024)