Skip to content
OpenAdvisories
Medium · 6.1 Scanner template CVE-2022-34305 BIT-tomcat-2022-34305EUVD-2022-5963GHSA-6j88-6whg-x687

XSS in examples web application

Published Jun 23, 2022 · Updated Oct 8, 2026 · Assigned by apache

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

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

ReleasePackageFixed inAdvisory
Debian 14 tomcat9 9.0.65-1 —
Debian 13 tomcat9 9.0.65-1 —
Debian 12 tomcat9 9.0.65-1 —
ReleasePackageFixed inAdvisory
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.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
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

References