CVE-2024-52318: 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…
Published Nov 18, 2024 · Updated Jun 18, 2026
Affected packages
org.apache.tomcat:tomcat-jasper
- Ecosystem
- Maven
- Affected
- = 11.0.0
- Fixed in
- 11.0.1
- Check
mvn dependency:tree -Dincludes=org.apache.tomcat:tomcat-jasper
org.apache.tomcat:tomcat-jasper
- Ecosystem
- Maven
- Affected
- = 10.1.31
- Fixed in
- 10.1.32
- Check
mvn dependency:tree -Dincludes=org.apache.tomcat:tomcat-jasper
org.apache.tomcat:tomcat-jasper
- Ecosystem
- Maven
- Affected
- = 9.0.96
- Fixed in
- 9.0.97
- Check
mvn dependency:tree -Dincludes=org.apache.tomcat:tomcat-jasper
org.apache.tomcat.embed:tomcat-embed-jasper
- Ecosystem
- Maven
- Affected
- = 9.0.96
- Fixed in
- 9.0.97
- Check
mvn dependency:tree -Dincludes=org.apache.tomcat.embed:tomcat-embed-jasper
org.apache.tomcat.embed:tomcat-embed-jasper
- Ecosystem
- Maven
- Affected
- = 11.0.0
- Fixed in
- 11.0.1
- Check
mvn dependency:tree -Dincludes=org.apache.tomcat.embed:tomcat-embed-jasper
org.apache.tomcat.embed:tomcat-embed-jasper
- Ecosystem
- Maven
- Affected
- = 10.1.31
- Fixed in
- 10.1.32
- Check
mvn dependency:tree -Dincludes=org.apache.tomcat.embed:tomcat-embed-jasper
org.apache.tomcat:tomcat
- Ecosystem
- Maven
- Affected
- = 11.0.0
- Fixed in
- 11.0.1
- Check
mvn dependency:tree -Dincludes=org.apache.tomcat:tomcat
org.apache.tomcat:tomcat
- Ecosystem
- Maven
- Affected
- = 10.1.31
- Fixed in
- 10.1.32
- Check
mvn dependency:tree -Dincludes=org.apache.tomcat:tomcat
org.apache.tomcat:tomcat
- Ecosystem
- Maven
- Affected
- = 9.0.96
- Fixed in
- 9.0.97
- Check
mvn dependency:tree -Dincludes=org.apache.tomcat:tomcat
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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
Credited to aruneko.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-52318
- https://lists.apache.org/thread/co243cw1nlh6p521c5265cm839wkqdp9
- 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://security.netapp.com/advisory/ntap-20250131-0009
- https://github.com/advisories/GHSA-f632-9449-3j4w
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2026-65182
Apache Tomcat has an Improper Access Control, Incorrect Authorization vulnerability
critical9.1No fixAug 26, 2026CVE-2026-65905
Apache Tomcat's DIGEST authenticator has an Authentication Bypass by Capture-replay vulnerability
critical9.8No fixAug 26, 2026CVE-2026-68525
Apache Tomcat's FORM authentication process has an Incorrect Authorization vulnerability
critical9.1No fixAug 26, 2026CVE-2026-50229
Apache Tomcat has a Cross-site Scripting vulnerability
medium6.1No fixJun 29, 2026CVE-2026-53404
Apache Tomcat's rewrite valve has an Always-Incorrect Control Flow Implementation vulnerability
high7.3No fixJun 29, 2026CVE-2026-55276
Apache Tomcat has an Always-Incorrect Control Flow Implementation vulnerability
critical9.1No fixJun 29, 2026
