Vulnerability · Published Dec 3, 2024 · Assigned by GitHub_M
CVE-2024-53257Vitess allows HTML injection in /debug/querylogz & /debug/env
Medium 4.9
In plain English
A medium-severity cross-site scripting in vitess from vitessio. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 38% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | vitess.io/vitess | 0.21.1 | GHSA-7mwh-q3xm-qh6p |
| Go | vitess.io/vitess | 0.20.4 | GHSA-7mwh-q3xm-qh6p |
| Go | vitess.io/vitess | 0.19.8 | GHSA-7mwh-q3xm-qh6p |
| Go | vitess.io/vitess | 0.19.8, 0.20.4, 0.21.1 | GO-2024-3306 |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N