Apache Tomcat Vulnerable to Cross-Site Scripting

Description

Multiple cross-site scripting (XSS) vulnerabilities in the appdev/sample/web/hello.jsp example application in Tomcat 4.0.0 through 4.0.6, 4.1.0 through 4.1.36, 5.0.0 through 5.0.30, 5.5.0 through 5.5.23, and 6.0.0 through 6.0.10 allow remote attackers to inject arbitrary web script or HTML via the test parameter and unspecified vectors.

Basic information

Type
reviewed
Severity
medium
Advisory on GitHub
Open advisory ↗
Repository advisory
Source code
Browse source ↗
Published (advisory)
2022-05-01 17:52:51 UTC
Updated
2025-04-09 14:33:02 UTC
GitHub reviewed
2025-04-09 14:32:31 UTC
NVD published
2007-05-21

EPSS Score

Score Percentile
83.30% 99.24%

CVSS Scores

Base score Version Severity Vector
5.3 4.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network.
Attack complexity (AC:L)
Exploitation conditions are straightforward and stable.
Attack requirements (AT:N)
No additional preconditions are required beyond normal reachability.
Privileges required (PR:N)
No privileges are required.
User interaction (UI:P)
A user has to participate (for example click/open/approve).
Vulnerable system confidentiality impact (VC:N)
No confidentiality impact on the vulnerable system.
Vulnerable system integrity impact (VI:N)
No integrity impact on the vulnerable system.
Vulnerable system availability impact (VA:N)
No availability impact on the vulnerable system.
Subsequent system confidentiality impact (SC:L)
Limited confidentiality impact on subsequent systems.
Subsequent system integrity impact (SI:L)
Limited integrity impact on subsequent systems.
Subsequent system availability impact (SA:N)
No availability impact on subsequent systems.

Identifiers

CWEs

CWE id Name
CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Affected packages (10)

Vulnerable version ranges and first patched releases as published by GitHub.

Ecosystem Package Vulnerable range First patched Vulnerable functions
maven org.apache.tomcat:jsp-api >= 4.1.0, < 4.1.37 4.1.37
maven org.apache.tomcat:jsp-api >= 5.5.0, < 5.5.24 5.5.24
maven org.apache.tomcat:jsp-api >= 6.0.0, < 6.0.11 6.0.11
maven org.apache.tomcat:jsp-api >= 5.0.0, <= 5.0.30
maven org.apache.tomcat:jsp-api >= 4.0.0, <= 4.0.6
maven org.apache.tomcat:servlet-api >= 4.1.0, < 4.1.37 4.1.37
maven org.apache.tomcat:servlet-api >= 5.5.0, < 5.5.24 5.5.24
maven org.apache.tomcat:servlet-api >= 6.0.0, < 6.0.11 6.0.11
maven org.apache.tomcat:servlet-api >= 5.0.0, <= 5.0.30
maven org.apache.tomcat:servlet-api >= 4.0.0, <= 4.0.6

References

cvelogic Threat Intelligence