CVE-2024-24558 react-query-streamed-hydration xss
MediumCVSS 6.1
EPSS 0.39%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
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.
Upgrade path
3 packages: 3 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| @tanstack query | = >=5.0.0, < 5.18.0; >= 5.0.0, < 5.18.0 | 5.18.0 | Fixed |
| @tanstack/react-query-next-experimental | >= 5.0.0, < 5.18.0 | 5.18.0 | Fixed |
| @tanstack/react-query-next-experimental(npm) | >= 5.0.0, < 5.18.0 | 5.18.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| @tanstack/react-query-next-experimental(npm) | >= 5.0.0, < 5.18.0 | 5.18.0 |
| @tanstack query | = >=5.0.0, < 5.18.0 | No fix listed |
| @tanstack query | >= 5.0.0, < 5.18.0 | 5.18.0 |
| @tanstack/react-query-next-experimental | >= 5.0.0, < 5.18.0 | 5.18.0 |
References
- https://github.com/TanStack/query/security/advisories/GHSA-997g-27x8-43rf vendor-advisory
- https://github.com/TanStack/query/commit/f2ddaf2536e8b71d2da88a9310ac9a48c13512a1 patch
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product