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

Published Jan 30, 2024
·
Updated

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.

Other sources

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.

MITRE

Affected Software

3 affected componentsFixes available
npm/@tanstack/react-query-next-experimental>=5.0.0<5.18.0
5.18.0
TanStack React-query-next-experimental Node.js>=5.0.0<5.18.0
TanStack Query Node.js>=5.0.0<5.18.0

Event History

Jan 30, 2024
CVE Published
via MITRE·07:36 PM
Data Sourced
via MITRE·07:36 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·08:57 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-24558?

CVE-2024-24558 is classified as a cross-site scripting vulnerability that can lead to significant security risks if exploited.

2

How do I fix CVE-2024-24558?

To fix CVE-2024-24558, update the @tanstack/react-query-next-experimental package to version 5.18.0 or later.

3

What software is affected by CVE-2024-24558?

CVE-2024-24558 affects the @tanstack/react-query-next-experimental package in versions between 5.0.0 and 5.18.0.

4

What types of attacks can CVE-2024-24558 facilitate?

CVE-2024-24558 can facilitate cross-site scripting attacks that exploit malicious input injection.

5

What are the potential impacts of exploiting CVE-2024-24558?

Exploiting CVE-2024-24558 may allow attackers to run arbitrary scripts in the context of a user's session.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203