{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2024-24558",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2024-01-25T15:09:40.208Z",
        "datePublished": "2024-01-30T19:36:48.810Z",
        "dateUpdated": "2024-08-23T18:20:15.958Z"
    },
    "containers": {
        "cna": {
            "title": "react-query-streamed-hydration xss",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-79",
                            "lang": "en",
                            "description": "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "LOW",
                        "attackVector": "NETWORK",
                        "availabilityImpact": "NONE",
                        "baseScore": 8.2,
                        "baseSeverity": "HIGH",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "LOW",
                        "privilegesRequired": "NONE",
                        "scope": "UNCHANGED",
                        "userInteraction": "NONE",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/TanStack/query/security/advisories/GHSA-997g-27x8-43rf",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/TanStack/query/security/advisories/GHSA-997g-27x8-43rf"
                },
                {
                    "name": "https://github.com/TanStack/query/commit/f2ddaf2536e8b71d2da88a9310ac9a48c13512a1",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/TanStack/query/commit/f2ddaf2536e8b71d2da88a9310ac9a48c13512a1"
                }
            ],
            "affected": [
                {
                    "vendor": "TanStack",
                    "product": "query",
                    "versions": [
                        {
                            "version": ">=5.0.0, < 5.18.0",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2024-01-30T19:36:48.810Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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.\n"
                }
            ],
            "source": {
                "advisory": "GHSA-997g-27x8-43rf",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-01T23:19:52.904Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "name": "https://github.com/TanStack/query/security/advisories/GHSA-997g-27x8-43rf",
                        "tags": [
                            "x_refsource_CONFIRM",
                            "x_transferred"
                        ],
                        "url": "https://github.com/TanStack/query/security/advisories/GHSA-997g-27x8-43rf"
                    },
                    {
                        "name": "https://github.com/TanStack/query/commit/f2ddaf2536e8b71d2da88a9310ac9a48c13512a1",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/TanStack/query/commit/f2ddaf2536e8b71d2da88a9310ac9a48c13512a1"
                    }
                ]
            },
            {
                "affected": [
                    {
                        "vendor": "tanstack",
                        "product": "query",
                        "cpes": [
                            "cpe:2.3:a:tanstack:query:*:*:*:*:*:node.js:*:*"
                        ],
                        "defaultStatus": "unknown",
                        "versions": [
                            {
                                "version": "5.0.0",
                                "status": "affected",
                                "lessThan": "5.18.0",
                                "versionType": "custom"
                            }
                        ]
                    }
                ],
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2024-08-23T18:05:17.618074Z",
                                "id": "CVE-2024-24558",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "yes"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-08-23T18:20:15.958Z"
                }
            }
        ]
    }
}