CVE-2024-53257: Vitess allows HTML injection in /debug/querylogz & /debug/env
Summary 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. Details These pages are rendered using text/template instead of rendering with a proper HTML templating engine. PoC Execute any query where part of it is HTML markup, for example as part of a string.
Published Dec 3, 2024 · Updated Dec 16, 2024
Affected packages
vitess.io/vitess
- Ecosystem
- Go
- Affected
- >= 0.21.0-rc1, < 0.21.1
- Fixed in
- 0.21.1
- Check
go list -m vitess.io/vitess
vitess.io/vitess
- Ecosystem
- Go
- Affected
- >= 0.20.0-rc1, < 0.20.4
- Fixed in
- 0.20.4
- Check
go list -m vitess.io/vitess
vitess.io/vitess
- Ecosystem
- Go
- Affected
- < 0.19.8
- Fixed in
- 0.19.8
- Check
go list -m vitess.io/vitess
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
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.
Details
These pages are rendered using text/template instead of rendering with a proper HTML templating engine.
PoC
Execute any query where part of it is HTML markup, for example as part of a string. To make it easier to observe you might want to make sure the query takes a few seconds to complete, giving you time to refresh the status page.
Example query that can trigger the issue:
UPDATE users
SET
email = CONCAT("", users.idUser, "@xxx")
WHERE
email NOT LIKE '%xxx%' AND email != "[email protected]"Result:
image
Impact
Anyone looking at the Vitess status page is affected. This would normally be owners / administrators of the Vitess cluster.
Anyone that can influence what text show up in queries can trigger it. This would normally be pretty much everybody interacting with a system that uses Vitess as a backend.
Credited to quinox.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-104252
Vitess vttablet /twopcz reflected XSS
critical9.8Oct 15, 2026CVE-2026-65959
Vitess: Missing authorization on vttablet /debug/vrlog exposes live VReplication SQL data
medium5.3No fixAug 18, 2026CVE-2026-27969
Vitess users with backup storage access can write to arbitrary file paths on restore
critical9.3Feb 27, 2026CVE-2026-27965
Vitess users with backup storage access can gain unauthorized access to production deployment environments
high8.4No fixFeb 26, 2026CVE-2024-32886
Vitess vulnerable to infinite memory consumption and vtgate crash
medium4.9May 8, 2024
