Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS05OTdnLTI3eDgtNDNyZs4AA482
react-query-streamed-hydration Cross-site Scripting vulnerability
Impact
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.
This 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.
Patches
To fix this issue, please update to version 5.18.0 or later.
Workarounds
There are no known workarounds for this issue. Please update to version 5.18.0 or later.
Permalink: https://github.com/advisories/GHSA-997g-27x8-43rfJSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS05OTdnLTI3eDgtNDNyZs4AA482
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: 10 months ago
Updated: 10 months ago
CVSS Score: 8.2
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
Identifiers: GHSA-997g-27x8-43rf, CVE-2024-24558
References:
- https://github.com/TanStack/query/security/advisories/GHSA-997g-27x8-43rf
- https://github.com/TanStack/query/commit/f2ddaf2536e8b71d2da88a9310ac9a48c13512a1
- https://nvd.nist.gov/vuln/detail/CVE-2024-24558
- https://github.com/advisories/GHSA-997g-27x8-43rf
Blast Radius: 8.8
Affected Packages
npm:@tanstack/react-query-next-experimental
Dependent packages: 6Dependent repositories: 12
Downloads: 216,082 last month
Affected Version Ranges: >= 5.0.0, < 5.18.0
Fixed in: 5.18.0
All affected versions: 5.0.0, 5.0.5, 5.4.3, 5.5.0, 5.7.0, 5.7.1, 5.7.2, 5.8.1, 5.8.2, 5.8.3, 5.8.4, 5.8.6, 5.8.7, 5.8.9, 5.9.0, 5.10.0, 5.12.0, 5.12.1, 5.12.2, 5.13.4, 5.14.0, 5.14.1, 5.14.2, 5.14.6, 5.15.0, 5.15.3, 5.15.4, 5.15.5, 5.17.0, 5.17.1, 5.17.3, 5.17.4, 5.17.5, 5.17.7, 5.17.8, 5.17.9, 5.17.10, 5.17.12, 5.17.14, 5.17.15, 5.17.19
All unaffected versions: 5.18.0, 5.18.1, 5.19.1, 5.20.1, 5.20.2, 5.20.4, 5.20.5, 5.21.2, 5.21.4, 5.21.6, 5.21.7, 5.22.2, 5.24.1, 5.24.2, 5.24.5, 5.24.6, 5.24.7, 5.24.8, 5.25.0, 5.26.3, 5.27.1, 5.27.3, 5.27.4, 5.27.5, 5.28.0, 5.28.2, 5.28.4, 5.28.6, 5.28.8, 5.28.9, 5.28.12, 5.28.13, 5.28.14, 5.29.0, 5.29.2, 5.31.0, 5.32.0, 5.32.1, 5.34.1, 5.34.2, 5.35.1, 5.35.4, 5.35.5, 5.36.0, 5.36.1, 5.36.2, 5.37.1, 5.38.0, 5.39.0, 5.40.0, 5.40.1, 5.41.0, 5.44.0, 5.45.0, 5.45.1, 5.46.0, 5.47.0, 5.48.0, 5.49.0, 5.49.1, 5.49.2, 5.50.1, 5.51.1, 5.51.3, 5.51.4, 5.51.5, 5.51.8, 5.51.9, 5.51.11, 5.51.14, 5.51.15, 5.51.16, 5.51.17, 5.51.18, 5.51.21, 5.51.23, 5.51.24, 5.52.0, 5.52.1, 5.52.2, 5.52.3, 5.53.1, 5.53.2, 5.53.3, 5.54.1, 5.55.0, 5.55.1, 5.55.2, 5.55.3, 5.55.4, 5.56.0, 5.56.1, 5.56.2, 5.59.0, 5.59.3, 5.59.4, 5.59.5, 5.59.6, 5.59.8, 5.59.9, 5.59.10, 5.59.11, 5.59.12, 5.59.13, 5.59.14, 5.59.15, 5.59.16, 5.59.17, 5.59.18, 5.59.19, 5.59.20, 5.60.2, 5.60.4, 5.60.5, 5.60.6