Apache Tomcat - XSS in generated JSPs
Description:
The fix for improvement 69333 caused pooled JSP tags not to be released after use which in turn could cause output of some tags not to escaped as expected. This unescaped output could lead to XSS.
Versions Affected:
- Apache Tomcat 11.0.0
- Apache Tomcat 10.1.31
- Apache Tomcat 9.0.96
Mitigation:
Users of the affected versions should apply one of the following mitigations:
- Upgrade to Apache Tomcat 11.0.1 or later
- Upgrade to Apache Tomcat 10.1.33 or later Note: 10.1.32 was not released
- Upgrade to Apache Tomcat 9.0.97 or later
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | org.apache.tomcat.embed:tomcat-embed-jasper | >= 9.0.96, < 9.0.97, >= 11.0.0, < 11.0.1, >= 10.1.31, < 10.1.32 | 9.0.97, 11.0.1, 10.1.32 |
| Java / Kotlin (Maven) | org.apache.tomcat:tomcat | >= 11.0.0, < 11.0.1, >= 10.1.31, < 10.1.32, >= 9.0.96, < 9.0.97 | 11.0.1, 10.1.32, 9.0.97 |
| Java / Kotlin (Maven) | org.apache.tomcat:tomcat-jasper | >= 11.0.0, < 11.0.1, >= 10.1.31, < 10.1.32, >= 9.0.96, < 9.0.97 | 11.0.1, 10.1.32, 9.0.97 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-52318
- https://github.com/apache/tomcat/commit/8d1fc4733a06d1a03b9d644c57010f2ec5f0df38
- https://github.com/apache/tomcat/commit/9813c5dd3259183f659bbb83312a5cf673cc1ebf
- https://github.com/apache/tomcat/commit/be8e32143a3159e78fe5463d09bb8e1b33bf2b1f
- https://bz.apache.org/bugzilla/show_bug.cgi?id=69333
- https://github.com/apache/tomcat
- https://lists.apache.org/thread/co243cw1nlh6p521c5265cm839wkqdp9
- https://security.netapp.com/advisory/ntap-20250131-0009
- http://www.openwall.com/lists/oss-security/2024/11/18/4
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N- Weakness (CWE)
CWE-326- Platform
- Java / Kotlin (Maven)
- Package
org.apache.tomcat.embed:tomcat-embed-jasper, org.apache.tomcat:tomcat, org.apache.tomcat:tomcat-jasper- Disclosed
- 18.11.2024
- Updated
- 11.10.2026 12:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-f632-9449-3j4w - CC BY 4.0
Vulnerability history: org.apache.tomcat.embed:tomcat-embed-jasper
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 2
- First → latest
- 05.2022 11.2024
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Critical 1
- Medium 1
Disclosures per year
- 2022: 1
- 2023: 0
- 2024: 1
- 2025: 0
- 2026: 0
-
Apache Tomcat - XSS in generated JSPs this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.