CVE-2026-50229

Apache Tomcat: XSS in number guess example

Published Jun 29, 2026 CVSS 3.1 · 6.1 Medium EPSS 4.1% KEV · Not listed
Description
Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) vulnerability in the number guess example for Apache Tomcat.

This issue affects Apache Tomcat: from 11.0.0-M1 through 11.0.22, from 10.1.0-M1 through 10.1.55, from 9.0.0.M1 through 9.0.118, from 8.5.0 through 8.5.100, from 7.0.0 through 7.0.109. Other versions that have reached end of support may also be affected.

Users are recommended to upgrade to version 11.0.23, 10.1.56 or 9.0.119, which fix the issue.

Analysis

AI-generated

Technical impact

This vulnerability is an improper neutralization of script‑related HTML tags that allows a basic client‑side XSS flaw (CWE‑79, CWE‑80) in the number‑guess example page. An attacker can embed script that will run in the victim’s browser, potentially exposing sensitive data or executing unintended actions if the user interacts with the page.

Affected Systems

Apache Tomcat releases 7.0.0 through 7.0.109, 8.5.0 through 8.5.100, 9.0.0.M1 through 9.0.118, 10.1.0-M1 through 10.1.55, and 11.0.0-M1 through 11.0.22, including other end‑of‑support versions.

Risk and Exploitability

The flaw can be triggered by accessing the number‑guess example page and requires only a victim to visit the vulnerable URL. The CVSS score of 6.1 indicates a medium severity. The EPSS score of 4% reflects a very low exploitation probability, and the vulnerability is not listed in the CISA KEV catalog. Because the attack vector is client‑side, exploitation is limited to users who access the vulnerable URL; no elevated privileges or attacker‑controlled server side code are required.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache Tomcat to a patched version: 11.0.23 or later, 10.1.56 or later, 9.0.119 or later.
  • In the interim, disable or remove the number‑guess example from the deployed web application to eliminate the vulnerable entry point.
  • Add output‑encoding or Content‑Security‑Policy headers to the affected pages to reduce the impact of any remaining XSS vectors.

Generated by OpenCVE AI on August 3, 2026 at 06:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4889-1 tomcat10 security update
Github GHSA Github GHSA GHSA-pg42-rg8c-j886 Apache Tomcat has a Cross-site Scripting vulnerability
Ubuntu USN Ubuntu USN USN-8551-1 Tomcat vulnerabilities
History
Type Values Removed Values Added
Metrics cvssV3_1

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

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

cvssV3_1

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

Type Values Removed Values Added
First Time appeared Apache
Apache tomcat
Vendors & Products Apache
Apache tomcat
Type Values Removed Values Added
Weaknesses CWE-79
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate

Type Values Removed Values Added
Description Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) vulnerability in the number guess example for Apache Tomcat. This issue affects Apache Tomcat: from 11.0.0-M1 through 11.0.22, from 10.1.0-M1 through 10.1.55, from 9.0.0.M1 through 9.0.118, from 8.5.0 through 8.5.100, from 7.0.0 through 7.0.109. Other versions that have reached end of support may also be affected. Users are recommended to upgrade to version 11.0.23, 10.1.56 or 9.0.119, which fix the issue.
Title Apache Tomcat: XSS in number guess example
Weaknesses CWE-80
References
Weaknesses
  • CWE-79

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

  • CWE-80

    Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Jun 30, 2026, 12:50 PM
Reserved
Jun 4, 2026, 9:39 AM
Status
Analyzed
Published
Jun 29, 2026, 9:16 PM
Modified
Oct 25, 2026, 9:10 PM
Severity
Moderate
Public date
Jun 29, 2026, 8:36 PM