Vulnerability · Published Jan 30, 2024 · Assigned by GitHub_M

CVE-2024-24558react-query-streamed-hydration xss

High 8.2

In plain English

A high-severity cross-site scripting in query from TanStack. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 33% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.2High
Exploit odds (30 days)0.4%top 67.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npm@tanstack/react-query-next-experimental5.18.0GHSA-997g-27x8-43rf

Affected products (as reported)

VendorProductVersions
TanStack query >=5.0.0, < 5.18.0

Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N

References