{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2024-53257",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2024-11-19T20:08:14.480Z",
        "datePublished": "2024-12-03T15:46:40.513Z",
        "dateUpdated": "2024-12-03T16:57:59.604Z"
    },
    "containers": {
        "cna": {
            "title": "Vitess allows HTML injection in /debug/querylogz & /debug/env",
            "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": 4.9,
                        "baseSeverity": "MEDIUM",
                        "confidentialityImpact": "NONE",
                        "integrityImpact": "HIGH",
                        "privilegesRequired": "HIGH",
                        "scope": "UNCHANGED",
                        "userInteraction": "NONE",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/vitessio/vitess/security/advisories/GHSA-7mwh-q3xm-qh6p",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/vitessio/vitess/security/advisories/GHSA-7mwh-q3xm-qh6p"
                },
                {
                    "name": "https://github.com/vitessio/vitess/commit/2b71d1b5f8ca676beeab2875525003cd45096217",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/vitessio/vitess/commit/2b71d1b5f8ca676beeab2875525003cd45096217"
                }
            ],
            "affected": [
                {
                    "vendor": "vitessio",
                    "product": "vitess",
                    "versions": [
                        {
                            "version": ">= 0.21.0-rc1, < 21.0.1",
                            "status": "affected"
                        },
                        {
                            "version": ">= 0.20.0-rc1, < 20.0.4",
                            "status": "affected"
                        },
                        {
                            "version": "< 19.0.8",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2024-12-03T15:46:40.513Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "Vitess is a database clustering system for horizontal scaling of MySQL. The /debug/querylogz and /debug/env pages for vtgate and vttablet do not properly escape user input. The result is that queries executed by Vitess can write HTML into the monitoring page at will. These pages are rendered using text/template instead of rendering with a proper HTML templating engine. This vulnerability is fixed in 21.0.1, 20.0.4, and 19.0.8."
                }
            ],
            "source": {
                "advisory": "GHSA-7mwh-q3xm-qh6p",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "affected": [
                    {
                        "vendor": "vitessio",
                        "product": "vitess",
                        "cpes": [
                            "cpe:2.3:a:vitessio:vitess:*:*:*:*:*:*:*:*"
                        ],
                        "defaultStatus": "unknown",
                        "versions": [
                            {
                                "version": "0",
                                "status": "affected",
                                "lessThan": "19.0.8",
                                "versionType": "custom"
                            },
                            {
                                "version": "19.0.9",
                                "status": "affected",
                                "lessThan": "20.0.4",
                                "versionType": "custom"
                            },
                            {
                                "version": "20.0.5",
                                "status": "affected",
                                "lessThan": "21.0.1",
                                "versionType": "custom"
                            }
                        ]
                    }
                ],
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2024-12-03T16:53:09.581215Z",
                                "id": "CVE-2024-53257",
                                "options": [
                                    {
                                        "Exploitation": "poc"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "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-12-03T16:57:59.604Z"
                }
            }
        ]
    }
}