Summary
CVE-2026-104252 is a reflected cross-site scripting (XSS, CWE-79) vulnerability in the vttablet /twopcz HTTP debug endpoint of Vitess. A remote, unauthenticated attacker can send an operator a crafted request that executes script in the operator’s browser. The CVE record rates it Critical (CVSS 9.8).
Technical details
- Root cause: The
twopczHandlerin vttablet reflects the user-suppliedActionanddtidform values into the HTML response without proper escaping. - Trigger conditions: The
/twopczdebug endpoint is reachable by default, because Vitess uses an allow-all ACL policy unless one is configured. The attacker needs network access to the vttablet HTTP port (default 15999, per the advisory). - Attack vector: Network. The attacker sends a crafted request containing script in the
Actionordtidparameters to an operator. - Impact: Script runs in the operator’s browser with same-origin access to other vttablet debug endpoints. According to the advisory, these expose query plans, recent queries with parameters, transaction logs, environment variables and performance profiles.
- Note on scoring: The advisory says an earlier assessment scored this 7.7 (High) with user interaction required. The published score of 9.8 reflects no user interaction.
Affected software
- Vitess versions prior to 23.0.5
- Vitess versions 24.0.0 up to, but not including, 24.0.2
Severity
- CVSS v3.1 base score: 9.8 (Critical)
- Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate: Upgrade to Vitess 23.0.5 or 24.0.2.
- If patching is not immediately possible (workarounds from the vendor advisory):
- Restrict network access to the vttablet HTTP port with firewall rules or localhost-only binding.
- Apply ACL policies that deny unauthenticated access to debug endpoints.
- Place a reverse proxy (for example nginx or envoy) with strict client allowlisting in front of the HTTP port.

