{"id":"CVE-2024-24558","aliases":["CVE-2024-24558","GHSA-997g-27x8-43rf"],"related":[],"kind":"vulnerability","state":"published","title":"react-query-streamed-hydration xss","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"TanStack Query proporciona administración de estado asincrónica, utilidades de estado de servidor y recuperación de datos para la web. El paquete NPM `@tanstack/react-query-next-experimental` es afectado por una vulnerabilidad de cross site scripting. Para aprovechar esto, un atacante necesitaría inyectar entradas maliciosas o hacer arreglos para que se devuelvan entradas maliciosas desde un endpoint. Para solucionar este problema, actualice a la versión 5.18.0 o posterior.","source":"nvd"}],"published":"2024-01-30T19:36:48.810Z","modified":"2026-09-10T03:50:09.287Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","score":8.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","score":8.2,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":">=5.0.0, < 5.18.0","status":"affected"}],"vendor":"TanStack","product":"query","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"5.0.0","fixed":"5.18.0","status":"affected"}],"vendor":"tanstack","product":"query","cpe":"cpe:2.3:a:tanstack:query:*:*:*:*:*:node.js:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"5.0.0","status":"affected","fixed":"5.18.0"}],"ecosystem":"npm","package":"@tanstack/react-query-next-experimental","purl":"pkg:npm/%40tanstack/react-query-next-experimental","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"5.0.0","fixed":"5.18.0"}],"vendor":"tanstack","product":"react-query-next-experimental","cpe":"cpe:2.3:a:tanstack:react-query-next-experimental:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/TanStack/query/security/advisories/GHSA-997g-27x8-43rf","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/TanStack/query/commit/f2ddaf2536e8b71d2da88a9310ac9a48c13512a1","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-24558","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/TanStack/query","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2024-08-23T18:05:17.618Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-24558","url":"https://www.cve.org/CVERecord?id=CVE-2024-24558","licence":"CVE Terms of Use","modified":"2024-08-23T18:20:15.958Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-997g-27x8-43rf","url":"https://github.com/advisories/GHSA-997g-27x8-43rf","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:09.287Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-24558","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-24558","licence":"Public domain","modified":"2026-06-17T07:14:36.247Z"}],"updatedAt":"2026-11-25T22:58:36.451Z","epss":{"score":0.00547,"percentile":0.39441,"date":"2026-11-30T12:00:22.000Z"}}