NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
☕
☕ Maven
Not in CISA KEV
MEDIUM severity

CVE-2024-52318 — tomcat-jasper

MEDIUMFix: apache/tomcat@8d1fc47

CVE-2024-52318 is a medium-severity (CVSS 6.1) CWE-326 vulnerability in org.apache.tomcat:tomcat-jasper. A fix is available for org.apache.tomcat:tomcat-jasper — see the affected versions and patch details below.

Apache Tomcat: Incorrect JSP tag recycling leads to XSS

Also known asBIT-tomcat-2024-52318GHSA-f632-9449-3j4w
Published
Updated
Affected
9 pkgs
Patched
9 / 9
Exploits
None indexed
Exploitation data as of Oct 23, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

No confirmed exploitation observed yet

  • CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for CVE-2024-52318.

EPSS Exploitation Probability

via FIRST.org ↗
1.7%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs78th percentile — riskier than 78% of all scored CVEsHighest risk
0.00%6.53%13.1%19.6%12.0%1.7%Apr 26Aug 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

9 pkgs affected
☕org.apache.tomcat:tomcat-jasper☕org.apache.tomcat:tomcat-jasper☕org.apache.tomcat.embed:tomcat-embed-jasper☕org.apache.tomcat.embed:tomcat-embed-jasper☕org.apache.tomcat.embed:tomcat-embed-jasper☕org.apache.tomcat:tomcat-jasper☕org.apache.tomcat:tomcat☕org.apache.tomcat:tomcat+1 more

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.

Description

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 Packages

9 total 9 fixed
EcosystemPackageVulnerable rangeFix
☕Mavenorg.apache.tomcat:tomcat-jasper≥ 11.0.0&&< 11.0.111.0.1org.apache.tomcat:tomcat-jasper:11.0.1
☕Mavenorg.apache.tomcat:tomcat-jasper≥ 10.1.31&&< 10.1.3210.1.32org.apache.tomcat:tomcat-jasper:10.1.32
☕Mavenorg.apache.tomcat.embed:tomcat-embed-jasper≥ 9.0.96&&< 9.0.979.0.97org.apache.tomcat.embed:tomcat-embed-jasper:9.0.97
☕Mavenorg.apache.tomcat.embed:tomcat-embed-jasper≥ 11.0.0&&< 11.0.111.0.1org.apache.tomcat.embed:tomcat-embed-jasper:11.0.1
☕Mavenorg.apache.tomcat.embed:tomcat-embed-jasper≥ 10.1.31&&< 10.1.3210.1.32org.apache.tomcat.embed:tomcat-embed-jasper:10.1.32
☕Mavenorg.apache.tomcat:tomcat-jasper≥ 9.0.96&&< 9.0.979.0.97org.apache.tomcat:tomcat-jasper:9.0.97

Affected Products

1 product · 3 configurations
Application
tomcatapache
3 versions
9.0.9610.1.3111.0.0

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.apache.tomcat:tomcat-jasper, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update org.apache.tomcat:tomcat-jasper to 11.0.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2024-52318 is resolved across your whole dependency graph.

  3. Workarounds

    Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.

Frequently Asked Questions

# 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
O3 Security · Impact-Aware SCA

Is CVE-2024-52318 in your dependencies?

Find it across Maven, including transitive dependencies.

CVE-2024-52318: tomcat-jasper XSS — Fixed in 11.0.1