CVE-2024-24558
JavaScript vulnerability analysis and mitigation

Overview

The vulnerability (CVE-2024-24558) affects the @tanstack/react-query-next-experimental NPM package, discovered and disclosed on January 30, 2024. This security issue is identified as a cross-site scripting (XSS) vulnerability that impacts versions 5.0.0 through 5.18.0 of the package (GitHub Advisory).

Technical details

The vulnerability stems from improper handling of untrusted input during server-side rendering of HTML pages. The issue has been assigned a CVSS v3.1 base score of 8.2 (High severity), with attack vector being Network, attack complexity Low, requiring no privileges or user interaction. The vulnerability is categorized as CWE-79, which is typically associated with cross-site scripting attacks (GitHub Advisory).

Impact

The vulnerability could allow attackers to execute cross-site scripting attacks by either injecting malicious input directly or arranging for malicious input to be returned from an endpoint. This could potentially lead to high impact on confidentiality and low impact on integrity of the affected systems (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 5.18.0 of the package. Users are strongly advised to update to version 5.18.0 or later, as there are no known workarounds for this security issue. The fix implements appropriate escaping mechanisms to prevent JavaScript injection into rendered pages (GitHub Advisory, FortiGuard Labs).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-23947CRITICAL9.3
  • JavaScriptJavaScript
  • @orval/core
NoYesJan 20, 2026
CVE-2026-23950HIGH8.8
  • JavaScriptJavaScript
  • grafana-graphite
NoYesJan 20, 2026
CVE-2026-22037HIGH8.4
  • JavaScriptJavaScript
  • @fastify/express
NoYesJan 19, 2026
CVE-2026-23522LOW3.7
  • JavaScriptJavaScript
  • @lobehub/chat
NoNoJan 19, 2026
CVE-2025-66803LOW1.7
  • JavaScriptJavaScript
  • @hotwired/turbo
NoYesJan 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management