GitHub Advisoryadvisory · npm

GHSA-997g-27x8-43rf react-query-streamed-hydration Cross-site Scripting vulnerability

HIGH Published 2024-01-30 Modified 2024-01-30 Official page ↗
Aliases
CVE-2024-24558
Ecosystem
npm
Packages
@tanstack/react-query-next-experimental
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
Weaknesses
CWE-79
Reviewed
2024-01-30

Affected packages

• npm @tanstack/react-query-next-experimental: >= 5.0.0, < 5.18.0 → fixed in 5.18.0

Description

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.

Related

Alias · CVE (1)

  • CVE-2024-24558 TanStack Query supplies asynchronous state management, server-state utilities and data fetching for the web. vulnerability

Weakness · CWE (1)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References