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.
Published: 2026-10-13
Score: 9.8 Critical
EPSS: n/a
KEV: No
Impact: Reflected Cross‑Site Scripting that allows a remote unauthenticated attacker to deliver malicious script to an operator’s browser, enabling read access to same‑origin diagnostic endpoints.
Action: Patch Now
AI Analysis

Impact

The flaw exists in Vitess vttablet’s /twopcz debug handler, which inserts unescaped user‑controlled values into an HTML response. This results in a reflected XSS (CWE‑79) that can execute arbitrary JavaScript within the operator’s browser context. Because the script runs under the vttablet debug origin, it can read diagnostic data—including queries, transactions, environment variables, and profiling information—exposing potentially sensitive information from the deployment.

Affected Systems

The vulnerability affects every Vitess instance utilizing versions prior to 23.0.5 and 24.0.2. The fix was introduced in release 23.0.5 for the 23.x line and in 24.0.2 for the 24.x line. Operators or administrators deploying earlier releases are susceptible unless the endpoint is blocked or removed.

Risk and Exploitability

The CVSS score of 9.8 categorises this as critical. EPSS data is presently unavailable, but the absence of a KEV flag does not diminish the risk. The likely attack vector is a remote unauthenticated request targeting the /twopcz debug endpoint; the attacker must craft a request that the operator receives, and the script will execute in that operator’s browser, permitting access to same‑origin diagnostic resources.

Generated by OpenCVE AI on October 13, 2026 at 21:48 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Vitess 23.0.5 or later, or 24.0.2 or later, to apply the vendor patch that escapes output in the /twopcz handler.
  • Reconfigure the ACL policy so that the /twopcz endpoint is inaccessible to unauthenticated users and limited only to trusted administrative roles.
  • If an immediate upgrade is not possible, remove or disable the /twopcz debug endpoint from the server configuration to eliminate the vulnerable code path.

Generated by OpenCVE AI on October 13, 2026 at 21:48 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 13 Oct 2026 19:45:00 +0000

Type Values Removed Values Added
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.
Title Vitess vttablet /twopcz reflected XSS
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-13T19:22:58.208Z

Reserved: 2026-10-01T19:04:39.706Z

Link: CVE-2026-104252

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-13T20:17:12.453

Modified: 2026-10-13T20:17:12.453

Link: CVE-2026-104252

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-13T22:00:25Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')