CVE-2026-50229 Apache Tomcat: XSS in number guess example

Medium 6.1 Published Updated

An attacker can execute arbitrary scripts in the browser of a user interacting with the number guess example in Apache Tomcat.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-50229?

CVE-2026-50229 is a medium-severity cross-site scripting vulnerability in Apache Tomcat, published on 29 Jun 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-80

Which versions are affected by CVE-2026-50229?

1 open source package ship an affected version, including tomcat. It affects 1 product.

PackageAffectedFixed in
tomcat BitnamiAll versions9.0.101, 10.1.37, 11.0.5

Products include Apache Tomcat.

How do I fix CVE-2026-50229?

Upgrade tomcat to a fixed version for your release line: 9.0.101, 10.1.37 or 11.0.5.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2026-50229 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-50229 exists.

Public exploit code: 1 Nuclei template and 1 proofs of concept on GitHub.

All Apache Tomcat vulnerabilities

Sources

Also known as BIT-tomcat-2026-50229, DEBIAN-CVE-2026-50229, GHSA-pg42-rg8c-j886, UBUNTU-CVE-2026-50229.

Is CVE-2026-50229 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free