Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @tanstack/react-query-next-experimental
  4. ›
  5. CVE-2024-24558

CVE-2024-24558: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

January 30, 2024

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.

References

  • github.com/TanStack/query/commit/f2ddaf2536e8b71d2da88a9310ac9a48c13512a1
  • github.com/TanStack/query/security/advisories/GHSA-997g-27x8-43rf
  • github.com/advisories/GHSA-997g-27x8-43rf
  • nvd.nist.gov/vuln/detail/CVE-2024-24558

Code Behaviors & Features

Detect and mitigate CVE-2024-24558 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 5.0.0 before 5.18.0

Fixed versions

  • 5.18.0

Solution

Upgrade to version 5.18.0 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/@tanstack/react-query-next-experimental/CVE-2024-24558.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:52 +0000.