# Cross-site scripting in Apache Tomcat

Advisory record · `GHSA-jjpq-gp5q-8q6w`

- **Identifiers:** `GHSA-jjpq-gp5q-8q6w` · `CVE-2019-0221`
- **State:** Confirmed
- **Severity:** CVSS 6.1 Medium
- **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:** 30 May 2019
- **Updated:** 18 Jun 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 30 May 2019, 03:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `org.apache.tomcat.embed:tomcat-embed-core` (Maven): affected `>=9.0.0, <9.0.17 || >=8.5.0, <8.5.40 || >=7.0.0, <7.0.94`; fixed in `9.0.17`, `8.5.40`, `7.0.94`
- `org.apache.tomcat:tomcat-catalina` (Maven): affected `>=9.0.0, <9.0.17 || >=8.5.0, <8.5.40 || >=7.0.0, <7.0.94`; fixed in `9.0.17`, `8.5.40`, `7.0.94`
- `org.apache.tomcat:tomcat` (Maven): affected `>=9.0.0, <9.0.17 || >=8.5.0, <8.5.40 || >=7.0.0, <7.0.94`; fixed in `9.0.17`, `8.5.40`, `7.0.94`

## Machine-written summary

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

> Apache Tomcat (tomcat-embed-core, tomcat-catalina and tomcat, Maven) versions 7.0.0 to before 7.0.94, 8.5.0 to before 8.5.40, and 9.0.0 to before 9.0.17 are affected. The SSI printenv command echoes user-supplied data without escaping, enabling cross-site scripting. SSI is disabled by default, and the printenv command is intended for debugging. Upgrade to 7.0.94, 8.5.40, 9.0.17 or later.

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.0: `CVSS:3.0/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.58, the 99th percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 28 May 2019, 21:01 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2019-0221)
- 28 May 2019, 22:29 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2019-0221)
- 31 Oct 2026, 14:20 UTC: First seen by agentprime
- 31 Oct 2026, 14:20 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-jjpq-gp5q-8q6w)

## Sources

- [GitHub Advisory Database: GHSA-jjpq-gp5q-8q6w](https://github.com/advisories/GHSA-jjpq-gp5q-8q6w)
- [OSV: GHSA-jjpq-gp5q-8q6w](https://osv.dev/vulnerability/GHSA-jjpq-gp5q-8q6w)
- <https://nvd.nist.gov/vuln/detail/CVE-2019-0221>
- <https://github.com/apache/tomcat/commit/15fcd166ea2c1bb79e8541b8e1a43da9c452ceea>
- <https://github.com/apache/tomcat/commit/44ec74c44dcd05cd7e90967c04d40b51440ecd7e>
- <https://github.com/apache/tomcat/commit/4fcdf706f3ecf35912a600242f89637f5acb32da>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZQTZ5BJ5F4KV6N53SGNKSW3UY5DBIQ46>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NPHQEL5AQ6LZSZD2Y6TYZ4RC3WI7NXJ3>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZQTZ5BJ5F4KV6N53SGNKSW3UY5DBIQ46>
- <https://seclists.org/bugtraq/2019/Dec/43>
- <https://security.gentoo.org/glsa/202003-43>
- <https://security.netapp.com/advisory/ntap-20190606-0001>
- <https://support.f5.com/csp/article/K13184144?utm_source=f5support&amp%3Butm_medium=RSS>
- <https://support.f5.com/csp/article/K13184144?utm_source=f5support&amp;utm_medium=RSS>

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-jjpq-gp5q-8q6w>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-jjpq-gp5q-8q6w/>. Everything for agents: <https://agentprime.io/llms.txt>.
