CVE-2022-34305: XSS in examples web application

CVE-2022-34305 affects 10 listed versions of Apache Tomcat in the Dawnsentry catalogue.

6.1CVSS medium
Proof of concept publicexploitation
7%EPSS (next 30 days)
23 June 2022published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

Apache Tomcat

10 of 185 listed versions are affected. No fixed release is named. The newest release, 11.0.29, is not affected.

10.0.22 10.0.21 10.0.20 10.0.19 10.0.18 10.0.17 10.0.16 10.0.15 10.0.14 10.0.13

What it is

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N (NVD)

Published by Apache Software Foundation on 23 June 2022. Last changed 8 October 2026. Exploit code is public (Metasploit or Nuclei).

Sources

Check one version you run: look CVE-2022-34305 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.