# Apache Tomcat has a Cross-site Scripting vulnerability

Advisory record · `GHSA-pg42-rg8c-j886`

- **Identifiers:** `GHSA-pg42-rg8c-j886` · `BIT-tomcat-2026-50229` · `CVE-2026-50229`
- **State:** Confirmed
- **Severity:** CVSS 6.1 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-80](https://cwe.mitre.org/data/definitions/80.html)
- **Tags:** [Cross-site scripting (XSS)](https://agentprime.io/advisories/tag/xss.md)
- **Published:** 29 Jun 2026
- **Updated:** 4 Nov 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 29 Jun 2026, 21:32 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `org.apache.tomcat:tomcat` (Maven): affected `>=11.0.0-M1, <11.0.23 || >=10.1.0-M1, <10.1.56 || >=9.0.0.M1, <9.0.119 || >=8.5.0, <=8.5.100 || <=7.0.109`; fixed in `11.0.23`, `10.1.56`, `9.0.119`

## 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.041, the 90th percentile, on 8 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 29 Jun 2026, 21:32 UTC: [Confirmed by GitHub Advisory Database](https://github.com/advisories/GHSA-pg42-rg8c-j886)
- 4 Nov 2026, 17:10 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-pg42-rg8c-j886)

## Sources

- [GitHub Advisory Database: GHSA-pg42-rg8c-j886](https://github.com/advisories/GHSA-pg42-rg8c-j886)
- [OSV: GHSA-pg42-rg8c-j886](https://osv.dev/vulnerability/GHSA-pg42-rg8c-j886)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-50229>
- <https://github.com/apache/tomcat/commit/0d5bdd5b0dd964e9f73e530b7d753462b9bfd1d0>
- <https://github.com/apache/tomcat/commit/1fe95d841e9d461a16069974142d12c3ef68819a>
- <https://github.com/apache/tomcat/commit/de5a950415fc67713f17fab63d0c7809e0fca80b>
- <https://github.com/apache/tomcat>
- <https://lists.apache.org/thread/wlt2no8bw45zl1w8byop4zfqphldf5j0>
- <https://tomcat.apache.org/security-10.html>
- <https://tomcat.apache.org/security-11.html>
- <https://tomcat.apache.org/security-9.html>
- <http://www.openwall.com/lists/oss-security/2026/06/29/20>

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-pg42-rg8c-j886>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-pg42-rg8c-j886/>. Everything for agents: <https://agentprime.io/llms.txt>.
