# CVE-2024-53257: Vitess allows HTML injection in /debug/querylogz & /debug/env

- Priority: **Routine**
- Reason: Not severe (CVSS 4.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-12-03 · Modified: 2024-12-03
- Aliases: GHSA-7mwh-q3xm-qh6p, GO-2024-3306
- Record: https://cvemate.com/vulnerability/CVE-2024-53257 · JSON: https://cvemate.com/vulnerability/CVE-2024-53257/json

## Description

```text
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.
```

## Signals

- CVSS: 4.9 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N
- EPSS: 0.439%, percentile 39.919%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- vitess.io vitess (Go): ≥ 0.21.0-rc1, \< 0.21.1 \| ≥ 0.20.0-rc1, \< 0.20.4 \| \< 0.19.8 \| ≥ 0.21.0, \< 0.21.1
- vitessio vitess: ≥ 0.21.0-rc1, \< 21.0.1 \| ≥ 0.20.0-rc1, \< 20.0.4 \| \< 19.0.8

## References

- <https://github.com/vitessio/vitess/security/advisories/GHSA-7mwh-q3xm-qh6p>
- <https://github.com/vitessio/vitess/commit/2b71d1b5f8ca676beeab2875525003cd45096217>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-53257>
- <https://github.com/vitessio/vitess>

---

Data as of 2026-12-05T09:54:54.992Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
