{"id":"CVE-2024-24558","aliases":["GHSA-997g-27x8-43rf"],"url":"https://o3.security/vulnerability/CVE-2024-24558","summary":"react-query-streamed-hydration xss","details":"### Impact\n\nThe `@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.\n\nThis vulnerability arises from improper handling of untrusted input when `@tanstack/react-query-next-experimental` performs server-side rendering of HTML pages. To fix this vulnerability, we implemented appropriate escaping to prevent javascript injection into rendered pages.\n\n### Patches\n\nTo fix this issue, please update to version 5.18.0 or later.\n\n### Workarounds\n\nThere are no known workarounds for this issue. Please update to version 5.18.0 or later.\n","published":"2024-01-30T19:36:48.810Z","modified":"2026-08-12T03:51:42.250577605Z","cvss":{"score":8.2,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"@tanstack/react-query-next-experimental","fixedVersion":"5.18.0"}],"fix":{"url":"https://github.com/TanStack/query/commit/f2ddaf2536e8b71d2da88a9310ac9a48c13512a1","label":"TanStack/query@f2ddaf2"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/24xxx/CVE-2024-24558.json"},{"type":"ADVISORY","url":"https://github.com/TanStack/query/security/advisories/GHSA-997g-27x8-43rf"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-24558"},{"type":"FIX","url":"https://github.com/TanStack/query/commit/f2ddaf2536e8b71d2da88a9310ac9a48c13512a1"},{"type":"PACKAGE","url":"https://github.com/TanStack/query"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:42.250577605Z"}}