CVE-2026-104252
9.8CriticalPublished 13 Oct 2026 · NVD status: Awaiting Analysis · AI triage by gemini-3.8-flash
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
- Impact
- Full C/I/A compromise
- Weakness
- CWE-79
Impact
Remote unauthenticated attackers can steal query, transaction, profiling, and environment data via cross-site scripting when an operator opens a crafted link targeting the vttablet debug interface. It requires an operator to view the malicious request in a browser with network access to the debug origin.
Root cause
The /twopcz debug HTTP handler reflects the Action and dtid form parameters directly into an HTML response without escaping.
Affected systems
Vitess prior to 23.0.5 and 24.0.2
CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Fix & remediation
Upgrade Vitess to 23.0.5, 24.0.2, or newer. As an interim workaround, restrict or disable access to the /twopcz debug HTTP endpoint on vttablet and vtcombo, or restrict the debug origin ACLs.
$ vttablet --versionAI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD description
Vitess is a database clustering system for horizontal scaling of MySQL. Prior to 23.0.5 and 24.0.2, twopczHandler in go/vt/vttablet/tabletserver/twopcz.go writes the Action and dtid form values from the vttablet and vtcombo /twopcz HTTP debug endpoint into a text/html response without HTML escaping. Under the default allow-all ACL policy, a remote unauthenticated attacker can send an operator a crafted request that executes script in the operator's browser after the request is opened. The script runs with the vttablet debug origin and can read same-origin diagnostic endpoints that expose query, transaction, environment, variable, or profiling data available in that deployment. This issue is fixed in versions 23.0.5 and 24.0.2.
References
- https://github.com/vitessio/vitess/commit/3140c1846cd120db34f33b2083139b4ab638aed2
- https://github.com/vitessio/vitess/commit/976e1e0d78f9d29d02e5e31b4aa7e180648f08af
- https://github.com/vitessio/vitess/commit/c1ed96302e658190168c971afdac730cf70e43f7
- https://github.com/vitessio/vitess/pull/20255
- https://github.com/vitessio/vitess/pull/20273
- https://github.com/vitessio/vitess/pull/20274
- https://github.com/vitessio/vitess/releases/tag/v23.0.5
- https://github.com/vitessio/vitess/releases/tag/v24.0.2
- https://github.com/vitessio/vitess/security/advisories/GHSA-v75v-6fpf-gvw8