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

- Severity: Medium 4.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 39% of CVEs (2026-12-01)
- Published: 2024-12-03T15:46:40.513Z
- Modified: 2026-08-07T08:12:28.318Z
- Also known as: GHSA-7mwh-q3xm-qh6p, GO-2024-3306
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- vitessio vitess: >= 0.21.0-rc1, < 21.0.1; >= 0.20.0-rc1, < 20.0.4; < 19.0.8; before 19.0.8; from 19.0.9 before 20.0.4; from 20.0.5 before 21.0.1
- vitess.io/vitess (Go): from 0.21.0-rc1 before 0.21.1; from 0.20.0-rc1 before 0.20.4; before 0.19.8; from 0.20.0 before 0.20.4; from 0.21.0 before 0.21.1

## Every score

- GitHub_M: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`

## References

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

## Sources

- CVE List: [CVE-2024-53257](https://www.cve.org/CVERecord?id=CVE-2024-53257), CVE Terms of Use, modified 2024-12-03
- GitHub Advisory Database: [GHSA-7mwh-q3xm-qh6p](https://github.com/advisories/GHSA-7mwh-q3xm-qh6p), CC-BY-4.0, modified 2026-08-07
- Go Vulnerability Database: [GO-2024-3306](https://pkg.go.dev/vuln/GO-2024-3306), CC-BY-4.0, modified 2026-08-07
- NVD: [CVE-2024-53257](https://nvd.nist.gov/vuln/detail/CVE-2024-53257), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-53257 · Whole record: https://cve.day/CVE-2024-53257.json · Rebuilt by cve.day 2026-11-25T22:58:49.667Z
