# Apache Tomcat Cross-site scripting (XSS) vulnerability

Advisory record · `GHSA-f98p-9pp6-7q6c`

- **Identifiers:** `GHSA-f98p-9pp6-7q6c` · `CVE-2008-1947`
- **State:** Confirmed
- **Severity:** CVSS 4.0, no score published
- **Critical:** No
- **Weakness (CWE):** [CWE-79](https://cwe.mitre.org/data/definitions/79.html)
- **Tags:** [Cross-site scripting (XSS)](https://agentprime.io/advisories/tag/xss.md)
- **Published:** 1 May 2022
- **Updated:** 9 Apr 2025
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 1 May 2022, 23:45 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `org.apache.tomcat:tomcat` (Maven): affected `>=5.5.9, <5.5.27 || >=6.0.0, <6.0.18`; fixed in `5.5.27`, `6.0.18`
- `org.apache.tomcat.embed:tomcat-embed-core` (Maven): affected `>=5.5.9, <5.5.27 || >=6.0.0, <6.0.18`; fixed in `5.5.27`, `6.0.18`

## Machine-written summary

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

> Apache Tomcat 5.5.9 through 5.5.26 and 6.0.0 through 6.0.16 has a cross-site scripting flaw. A remote attacker can inject arbitrary web script or HTML through the name parameter (hostname attribute) of the Host Manager add page. Upgrade tomcat or tomcat-embed-core to 5.5.27 or 6.0.18.

Written 7 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

- Score not published, CVSS 4.0: `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`, from GitHub Advisory Database

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

## Timeline

- 31 Oct 2026, 15:11 UTC: First seen by agentprime
- 31 Oct 2026, 15:11 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-f98p-9pp6-7q6c)

## Sources

- [GitHub Advisory Database: GHSA-f98p-9pp6-7q6c](https://github.com/advisories/GHSA-f98p-9pp6-7q6c)
- [OSV: GHSA-f98p-9pp6-7q6c](https://osv.dev/vulnerability/GHSA-f98p-9pp6-7q6c)
- <https://nvd.nist.gov/vuln/detail/CVE-2008-1947>
- <https://github.com/apache/tomcat/commit/ab6a6c41ac972c845717c9d639f0335865afab4d>
- <https://github.com/apache/tomcat/commit/78ad0fcbe29c824f1f2e45a4e2716247b033250a>
- <https://github.com/apache/tomcat/commit/49c71fc59c1b8f8da77aea9eb53e61db168aebab>
- <https://github.com/apache/tomcat/commit/5f00d434c8dc11bd49ce0b4b56fe889839056030>
- <https://lists.apache.org/thread.html/r3aacc40356defc3f248aa504b1e48e819dd0471a0a83349080c6bcbf%40%3Cdev.tomcat.apache.org%3E>
- <https://lists.apache.org/thread.html/r3aacc40356defc3f248aa504b1e48e819dd0471a0a83349080c6bcbf@%3Cdev.tomcat.apache.org%3E>
- <https://lists.apache.org/thread.html/r584a714f141eff7b1c358d4679288177bd4ca4558e9999d15867d4b5%40%3Cdev.tomcat.apache.org%3E>
- <https://lists.apache.org/thread.html/r584a714f141eff7b1c358d4679288177bd4ca4558e9999d15867d4b5@%3Cdev.tomcat.apache.org%3E>
- <https://lists.apple.com/archives/security-announce/2008/Oct/msg00001.html>
- <https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11534>
- <https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A6009>

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-f98p-9pp6-7q6c>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-f98p-9pp6-7q6c/>. Everything for agents: <https://agentprime.io/llms.txt>.
