XSS in examples web application
Summary
| CVE | CVE-2022-34305 |
|---|---|
| State | PUBLISHED |
| Assigner | apache |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2022-06-23 11:15:07 UTC |
| Updated | 2026-10-08 22:17:21 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 6.1 MEDIUM from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS: 0.067140000 probability, percentile 0.938670000 (date 2026-10-20)
Problem Types: CWE-79 | CWE-79 CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 6.1 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| 2.0 | [email protected] | Primary | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
RequiredScope
ChangedConfidentiality
LowIntegrity
LowAvailability
NoneCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CVSS v2.0 Breakdown
Access Vector
NetworkAccess Complexity
MediumAuthentication
NoneConfidentiality
NoneIntegrity
PartialAvailability
NoneAV:N/AC:M/Au:N/C:N/I:P/A:N
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Apache | Tomcat | 10.1.0 | milestone1 | All | All |
| Application | Apache | Tomcat | 10.1.0 | milestone10 | All | All |
| Application | Apache | Tomcat | 10.1.0 | milestone11 | All | All |
| Application | Apache | Tomcat | 10.1.0 | milestone12 | All | All |
| Application | Apache | Tomcat | 10.1.0 | milestone13 | All | All |
| Application | Apache | Tomcat | 10.1.0 | milestone14 | All | All |
| Application | Apache | Tomcat | 10.1.0 | milestone15 | All | All |
| Application | Apache | Tomcat | 10.1.0 | milestone16 | All | All |
| Application | Apache | Tomcat | 10.1.0 | milestone2 | All | All |
| Application | Apache | Tomcat | 10.1.0 | milestone3 | All | All |
| Application | Apache | Tomcat | 10.1.0 | milestone4 | All | All |
| Application | Apache | Tomcat | 10.1.0 | milestone5 | All | All |
| Application | Apache | Tomcat | 10.1.0 | milestone6 | All | All |
| Application | Apache | Tomcat | 10.1.0 | milestone7 | All | All |
| Application | Apache | Tomcat | 10.1.0 | milestone8 | All | All |
| Application | Apache | Tomcat | 10.1.0 | milestone9 | All | All |
| Application | Apache | Tomcat | All | All | All | All |
| Application | Apache | Tomcat | All | All | All | All |
| Application | Apache | Tomcat | All | All | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Apache Software Foundation | Apache Tomcat | affected Apache Tomcat 8.5 8.5.50 to 8.5.81 | Not specified |
| CNA | Apache Software Foundation | Apache Tomcat | affected Apache Tomcat 9 9.0.30 to 9.0.64 | Not specified |
| CNA | Apache Software Foundation | Apache Tomcat | affected Apache Tomcat 10.0 10.0.0-M1 to 10.0.22 | Not specified |
| CNA | Apache Software Foundation | Apache Tomcat | affected Apache Tomcat 10.1 10.1.0-M1 to 10.1.0-M16 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| oss-security - CVE-2022-34305: Apache Tomcat: XSS in examples web application | af854a3a-2127-422b-91ae-364da2661108 | www.openwall.com | Mailing List, Third Party Advisory |
| lists.apache.org/thread/k04zk0nq6w57m72w5gb0r6z9ryhmvr4k | af854a3a-2127-422b-91ae-364da2661108 | lists.apache.org | Mailing List, Release Notes, Third Party Advisory |
| CVE-2022-34305 Apache Tomcat Vulnerability in NetApp Products | NetApp Product Security | af854a3a-2127-422b-91ae-364da2661108 | security.netapp.com | Third Party Advisory |
| Apache Tomcat: Multiple Vulnerabilities (GLSA 202208-34) — Gentoo security | af854a3a-2127-422b-91ae-364da2661108 | security.gentoo.org | Third Party Advisory |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 150541 Apache Tomcat Cross-Site Scripting(XSS) Vulnerability (CVE-2022-34305)
- 182048 Debian Security Update for tomcat9 (CVE-2022-34305)
- 20270 Oracle Database 21c Critical Patch Update - October 2022
- 20271 Oracle Database 19c Critical Patch Update - October 2022
- 20272 Oracle Database 19c Critical OJVM Patch Update - October 2022
- 296084 Oracle Solaris 11.4 Support Repository Update (SRU) 50.126.3 Missing (CPUOCT2022)
- 356168 Amazon Linux Security Advisory for tomcat : ALASTOMCAT8.5-2023-003
- 378610 Dell NetWorker Security Update for an Apache Tomcat Vulnerability (DSA-2022-341)
- 690921 Free Berkeley Software Distribution (FreeBSD) Security Update for tomcat (e2e7faf9-1b51-11ed-ae46-002b67dfc673)
- 710609 Gentoo Linux Apache Tomcat Multiple Vulnerabilities (GLSA 202208-34)
- 730645 Apache Tomcat Cross-Site Scripting (XSS) in examples web application Vulnerability (CVE-2022-34305)
- 730649 Apache Tomcat Cross-Site Scripting (XSS) in examples web application Vulnerability (CVE-2022-34305)
- 730658 Apache Tomcat Cross-Site Scripting (XSS) in examples web application Vulnerability (CVE-2022-34305)
- 730664 Apache Tomcat Cross-Site Scripting (XSS) in examples web application Vulnerability (CVE-2022-34305)