CVE-2024-53257
Vitess allows HTML injection in /debug/querylogz & /debug/env
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- High
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- High
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
4.9
Vitess allows HTML injection in /debug/querylogz & /debug/env
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.
- Record
CVE-2024-53257- 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 - Weakness
- CWE-79
- Updated
- 2026-11-02
EUVDEUVD-2024-3445
4.9
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.
- Record
EUVD-2024-3445- 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 - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-7mwh-q3xm-qh6p
6.9
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. 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("<img src=https://cataas.com/cat/says/oops>", users.idUser, "@xxx")
WHERE
email NOT LIKE '%xxx%' AND email != "[email protected]"
Result:
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.
- Record
GHSA-7mwh-q3xm-qh6p- CVSS 4.0
- 6.9 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 - 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 - Weakness
- CWE-79
- Updated
- 2026-11-02
NVD
4.9
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.
- Record
CVE-2024-53257- 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 - Weakness
- CWE-79
- Updated
- 2026-11-02
OSV
4.9
Vitess allows HTML injection in /debug/querylogz & /debug/env
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.
- Record
CVE-2024-53257- 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 - Weakness
- CWE-79
- Updated
- 2026-11-02
OSVGHSA-7mwh-q3xm-qh6p
6.9
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. 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("<img src=https://cataas.com/cat/says/oops>", users.idUser, "@xxx")
WHERE
email NOT LIKE '%xxx%' AND email != "[email protected]"
Result:
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.
- Record
GHSA-7mwh-q3xm-qh6p- CVSS 4.0
- 6.9 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 - 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 - Weakness
- CWE-79
- Updated
- 2026-11-02
Show 4 moreShow less
OSVAZL-53970 No score
CVE-2024-53257 affecting package vitess for versions less than 19.0.4-7
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.
- Record
AZL-53970- Updated
- 2026-11-05
OSVAZL-53977 No score
CVE-2024-53257 affecting package vitess for versions less than 17.0.7-7
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.
- Record
AZL-53977- Updated
- 2026-11-02
OSVGO-2024-3306 No score
Vitess allows HTML injection in /debug/querylogz and /debug/env in vitess.io/vitess
Vitess allows HTML injection in /debug/querylogz and /debug/env in vitess.io/vitess
- Record
GO-2024-3306- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:14599-1 No score
govulncheck-vulndb-0.0.20241213T205935-1.1 on GA media
These are all security issues fixed in the govulncheck-vulndb-0.0.20241213T205935-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:14599-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
vitess.io/vitessGo |
0.21.0-rc1 up to 0.21.1 | 0.21.1 |
vitess.io/vitessGo |
0.20.0-rc1 up to 0.20.4 | 0.20.4 |
vitess.io/vitessGo |
before 0.19.8 | 0.19.8 |
vitessAzure Linux:3 |
before 19.0.4-7 | 19.0.4-7 |
vitessAzure Linux:2 |
before 17.0.7-7 | 17.0.7-7 |
vitess.io/vitessGo |
before 0.19.8, 0.20.0 up to 0.20.4, 0.21.0 up to 0.21.1 | 0.19.80.20.40.21.1 |
govulncheck-vulndbopenSUSE:Tumbleweed From an advisory covering 21 CVEs |
before 0.0.20241213T205935-1.1 | 0.0.20241213T205935-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| facts | OSV | |
| aliases, published | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-53257 is a medium vulnerability (CVSS 4.9) in Vitessio Vitess, published December 3, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.44%, the 38th percentile. Fixed in vitess.io/vitess 0.21.1.
References
github.com/vitessio/vitess/security/advisories/GHSA-7mwh-q3xm-qh6p
github.com/vitessio/vitess/commit/2b71d1b5f8ca676beeab2875525003cd45096217
nvd.nist.gov/vuln/detail/CVE-2024-53257
github.com/advisories/GHSA-7mwh-q3xm-qh6p
github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53257.json
github.com/vitessio/vitess
Show 22 moreShow less
lists.opensuse.org/archives/list/[email protected]/thread/QTUY324RV3FFZBHVIWDHRCIOPJHIJIN4
suse.com/security/cve/CVE-2020-10696
suse.com/security/cve/CVE-2020-8912
suse.com/security/cve/CVE-2022-31668
suse.com/security/cve/CVE-2023-26248
suse.com/security/cve/CVE-2023-3676
suse.com/security/cve/CVE-2023-3955
suse.com/security/cve/CVE-2024-12401
suse.com/security/cve/CVE-2024-37032
suse.com/security/cve/CVE-2024-44337
suse.com/security/cve/CVE-2024-45039
suse.com/security/cve/CVE-2024-45337
suse.com/security/cve/CVE-2024-45436
suse.com/security/cve/CVE-2024-46455
suse.com/security/cve/CVE-2024-46528
suse.com/security/cve/CVE-2024-53257
suse.com/security/cve/CVE-2024-53859
suse.com/security/cve/CVE-2024-55601
suse.com/security/cve/CVE-2024-55657
suse.com/security/cve/CVE-2024-55658
suse.com/security/cve/CVE-2024-55659
suse.com/security/cve/CVE-2024-55660