# Apache Tomcat - XSS in generated JSPs

Advisory record · `GHSA-f632-9449-3j4w`

- **Identifiers:** `GHSA-f632-9449-3j4w` · `BIT-tomcat-2024-52318` · `CVE-2024-52318`
- **State:** Confirmed
- **Severity:** CVSS 6.1 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-326](https://cwe.mitre.org/data/definitions/326.html)
- **Tags:** [Weak cryptography or TLS](https://agentprime.io/advisories/tag/weak-crypto.md)
- **Published:** 18 Nov 2024
- **Updated:** 18 Jun 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 18 Nov 2024, 15:33 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `org.apache.tomcat:tomcat-jasper` (Maven): affected `>=11.0.0, <11.0.1 || >=10.1.31, <10.1.32 || >=9.0.96, <9.0.97`; fixed in `11.0.1`, `10.1.32`, `9.0.97`
- `org.apache.tomcat.embed:tomcat-embed-jasper` (Maven): affected `>=9.0.96, <9.0.97 || >=11.0.0, <11.0.1 || >=10.1.31, <10.1.32`; fixed in `9.0.97`, `11.0.1`, `10.1.32`
- `org.apache.tomcat:tomcat` (Maven): affected `>=11.0.0, <11.0.1 || >=10.1.31, <10.1.32 || >=9.0.96, <9.0.97`; fixed in `11.0.1`, `10.1.32`, `9.0.97`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Apache Tomcat versions 11.0.0, 10.1.31 and 9.0.96 are affected. A change to pooled JSP tags can stop some tag output from being escaped, which could allow cross-site scripting, and the source gives few details on what an attacker needs. Upgrade to Apache Tomcat 11.0.1, 10.1.33 or 9.0.97 or later, matching your major version.

Written 3 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 6.1 Medium, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`, from GitHub Advisory Database

- **CISA KEV:** Not listed.
- **EPSS:** 0.019, the 79th percentile, on 14 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:20 UTC: First seen by agentprime
- 31 Oct 2026, 14:20 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-f632-9449-3j4w)

## Sources

- [GitHub Advisory Database: GHSA-f632-9449-3j4w](https://github.com/advisories/GHSA-f632-9449-3j4w)
- [OSV: GHSA-f632-9449-3j4w](https://osv.dev/vulnerability/GHSA-f632-9449-3j4w)
- <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>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-f632-9449-3j4w>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-f632-9449-3j4w/>. Everything for agents: <https://agentprime.io/llms.txt>.
