Skip to main content
Mallory
MediumVulnerability

CVE-2022-34305: Cross-Site Scripting in Apache Tomcat Form Authentication Example

Published Jun 23, 2022 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS6.1Medium · v3.1
EPSS6.7%94th percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
Vendor
Apache Software Foundation
IdentifiersCVE-2022-34305CWE-79 · Improper Neutralization of Input…

CVE-2022-34305 is a cross-site scripting vulnerability in the examples web application shipped with Apache Tomcat. The flaw affects the Form authentication example in Apache Tomcat 10.1.0-M1 through 10.1.0-M16, 10.0.0-M1 through 10.0.22, 9.0.30 through 9.0.64, and 8.5.50 through 8.5.81. The vulnerable example reflects or displays user-supplied data without proper output filtering or sanitization, allowing untrusted script content to be rendered in a victim's browser. The issue is in demonstration/example functionality rather than Tomcat's core request-processing engine, but it is exploitable wherever the examples application is deployed and reachable.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows attacker-controlled script to execute in the browser of a user who accesses the vulnerable Form authentication example with malicious input. This can enable session theft, credential capture, user impersonation within the affected application context, content manipulation, and execution of arbitrary actions on behalf of the victim in the browser, subject to the victim's privileges and browser security controls.

Mitigation

If you can’t patch tonight, do this now.

If immediate patching is not possible, disable, undeploy, or remove the examples web application, especially the Form authentication example, from production and internet-accessible systems. Restrict access to demonstration applications to trusted administrative networks only, and avoid deploying sample applications in production environments.

Remediation

Patch, then assume compromise.

Upgrade Apache Tomcat to a fixed release. Reported fixed versions are 10.1.0-M17 or later, 10.0.23 or later, 9.0.65 or later, and 8.5.82 or later. If the examples web application is present in downstream distributions or bundled products, ensure the embedded Tomcat instance is updated to a non-vulnerable version.

Public exploits

Exploits

No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.

View more in app →
Every candidate exploit was rejected by Mallory's analysis.
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Apache Software FoundationTomcatapplication
FAQ

Frequently asked questions

Is CVE-2022-34305 exploited in the wild?
As of Oct 16, 2026, Mallory has no reports of CVE-2022-34305 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2022-34305?
As of Oct 16, 2026, Mallory has found no public exploit for CVE-2022-34305.
Is there a patch for CVE-2022-34305?
Upgrade Apache Tomcat to a fixed release. Reported fixed versions are 10.1.0-M17 or later, 10.0.23 or later, 9.0.65 or later, and 8.5.82 or later.
What products are affected by CVE-2022-34305?
Apache Software Foundation Tomcat.
How severe is CVE-2022-34305?
CVE-2022-34305 has a CVSS v3.1 score of 6.1 (Medium) and an EPSS score of 6.7% (94th percentile) as of Oct 16, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity3Community discussion across Reddit, Mastodon, and other social sources.