Description
In Apache Tomcat 10.1.0-M1 to 10.1.0-M16, 10.0.0-M1 to 10.0.22, 9.0.30 to 9.0.64 and 8.5.50 to 8.5.81 the Form authentication example in the examples web application displayed user provided data without filtering, exposing a XSS vulnerability.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Apache Software Foundation | Apache Tomcat | Apache Tomcat 8.5 8.5.50 to 8.5.81, Apache Tomcat 9 9.0.30 to 9.0.64, Apache Tomcat 10.0 10.0.0-M1 to 10.0.22, Apache Tomcat 10.1 10.1.0-M1 to 10.1.0-M16 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | tomcat9 | 9.0.65-1 | — |
| Debian 13 | tomcat9 | 9.0.65-1 | — |
| Debian 12 | tomcat9 | 9.0.65-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 22.04 LTS | tomcat9 | No fix yet | — |
| Ubuntu Pro 20.04 LTS | tomcat9 | No fix yet | — |
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Apache Tomcat Examples Web Application - Cross-Site Scripting http/cves/2022/CVE-2022-34305.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.apache.tomcat:tomcat | >= 10.1.0-M1, < 10.1.0-M17 | 10.1.0-M17 | GHSA-6j88-6whg-x687 |
| Maven | org.apache.tomcat:tomcat | >= 10.0.0-M1, < 10.0.22 | 10.0.22 | GHSA-6j88-6whg-x687 |
| Maven | org.apache.tomcat:tomcat | >= 9.0.30, < 9.0.65 | 9.0.65 | GHSA-6j88-6whg-x687 |
| Maven | org.apache.tomcat:tomcat | >= 8.5.50, < 8.5.82 | 8.5.82 | GHSA-6j88-6whg-x687 |
Advisories 5
- WID-SEC-2022-1776 Oracle MySQL: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jun 28, 2026
- WID-SEC-2022-0449 Apache Tomcat: Schwachstelle ermöglicht Cross-Site Scripting BSI CERT-Bund (WID) · Jan 25, 2026
- WID-SEC-2023-0137 Oracle Communications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 21, 2024
- WID-SEC-2024-1238 HPE HP-UX: Mehrere Schwachstellen BSI CERT-Bund (WID) · May 27, 2024
- WID-SEC-2023-1016 Oracle Fusion Middleware: Mehrere Schwachstellen BSI CERT-Bund (WID) · Dec 26, 2023