Skip to content
Heist/ feed
Back to feed
Medium

Vitess allows HTML injection in /debug/querylogz & /debug/env

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-53257
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 18:41 UTC · Revision 1

Source evidence

Vitess allows HTML injection in /debug/querylogz & /debug/env

core-osv · Original source

Published 3 Dec 2024, 15:46 UTC

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.

osv:CVE-2024-53257
Complete source record
{
  "id": "822618dc236b6ad04f0dbe2c64cc80aed04efef9461ed4f8facce5c7f7c103e2",
  "url": "https://osv.dev/vulnerability/CVE-2024-53257",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Vitess allows HTML injection in /debug/querylogz & /debug/env",
    "summary": "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.",
    "evidence": "osv:CVE-2024-53257",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2024-53257",
      "aliases": [
        "CVE-2024-53257",
        "GHSA-7mwh-q3xm-qh6p",
        "GO-2024-3306"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/vitessio/vitess",
              "type": "GIT",
              "events": [
                {
                  "introduced": "7908b432087d49f1413dd07bad76e3832944f710"
                },
                {
                  "fixed": "3d4f41db2fbc32611c7d2ea2af3dc68b9d962415"
                },
                {
                  "introduced": "7e8c974cdc7e98411ce6f4a698507180b2c990a5"
                },
                {
                  "fixed": "1cea0b8d3fcd2f1c5bccc01005427ec1cc10511f"
                },
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2665aa2a74fdd26c4606598ba68746be30bd9148"
                },
                {
                  "fixed": "2b71d1b5f8ca676beeab2875525003cd45096217"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0.21.0-rc1"
                      },
                      {
                        "fixed": "21.0.1"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0.20.0-rc1"
                      },
                      {
                        "fixed": "20.0.4"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "19.0.8"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "2b71d1b5f8ca676beeab2875525003cd45096217"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v19.0.7",
            "v0.19.7",
            "v20.0.3",
            "v0.20.3",
            "v21.0.0",
            "v0.21.0",
            "v21.0.0-rc2",
            "v0.21.0-rc2",
            "v21.0.0-rc1",
            "v0.21.0-rc1",
            "v20.0.2",
            "v0.20.2",
            "v19.0.6",
            "v0.19.6",
            "v19.0.5",
            "v0.19.5",
            "v20.0.1",
            "v0.20.1",
            "v19.0.4",
            "v0.19.4",
            "v19.0.3",
            "v0.19.3",
            "v19.0.1",
            "v0.19.1",
            "v19.0.0",
            "v0.19.0",
            "v19.0.0-rc1",
            "v0.19.0-rc1",
            "v10.0.0-rc1-mysql80",
            "v10.0.0-rc1",
            "v9.0.0-rc1",
            "v8.0.0-rc1",
            "v7.0.0-beta",
            "v6.0.0-rc.1",
            "v5.0.1",
            "v5.0.0",
            "v3.0.0-rc.3",
            "v3.0",
            "v3.0.0-rc.2",
            "v3.0.0-rc.1",
            "v2.2.0-rc.1",
            "v2.2-alpha",
            "v2.2",
            "v2.1.0-alpha.1",
            "v2.0.0-rc.2",
            "v2.0.0-rc.1",
            "v2.0.0-beta.2",
            "v2.0.0-alpha5",
            "v2.0.0-alpha4",
            "v2.0.0-alpha2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-53257.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:31.376870874Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53257.json",
        "https://github.com/vitessio/vitess/security/advisories/GHSA-7mwh-q3xm-qh6p",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-53257",
        "https://github.com/vitessio/vitess/commit/2b71d1b5f8ca676beeab2875525003cd45096217"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-79"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53257.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-53257",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 498498,
  "published_at": "2024-12-03T15:46:40.513+00:00"
}