---
id: CVE-2022-34305
title: >-
  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
  vulnerab…
summary: >-
  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
  vulnerab…
severity: medium
cvss: 6.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'
cwe:
  - CWE-79
  - CWE-79
vendor: apache
product: tomcat
affected:
  - 'tomcat >= 8.5.50, <= 8.5.81'
  - 'tomcat >= 9.0.30, <= 9.0.64'
  - 'tomcat >= 10.0.0, <= 10.0.22'
  - tomcat = 10.1.0
published: '2022-06-23'
updated: '2026-10-08'
sourceUpdated: '2026-10-08T22:17:21.903'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2022-34305'
references:
  - url: 'http://www.openwall.com/lists/oss-security/2022/06/23/1'
    label: security@apache.org
  - url: 'https://lists.apache.org/thread/k04zk0nq6w57m72w5gb0r6z9ryhmvr4k'
    label: security@apache.org
  - url: 'https://security.gentoo.org/glsa/202208-34'
    label: security@apache.org
  - url: 'https://security.netapp.com/advisory/ntap-20220729-0006/'
    label: security@apache.org
  - url: 'http://www.openwall.com/lists/oss-security/2022/06/23/1'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.apache.org/thread/k04zk0nq6w57m72w5gb0r6z9ryhmvr4k'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://security.gentoo.org/glsa/202208-34'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://security.netapp.com/advisory/ntap-20220729-0006/'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
  - exploit-available
epss: 0.06714
epssPercentile: 0.93758
exploits:
  nuclei:
    - CVE-2022-34305
  checkedAt: '2026-10-08T23:17:21.759Z'
exploitAvailable: true
ingestedAt: '2026-10-08T23:16:47.345Z'
---

## Overview

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

- `tomcat >= 8.5.50, <= 8.5.81`
- `tomcat >= 9.0.30, <= 9.0.64`
- `tomcat >= 10.0.0, <= 10.0.22`
- `tomcat = 10.1.0`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
