# Apache Struts is vulnerable to Cross-site Scripting

Advisory record · `GHSA-jgcr-9c2q-rvp8`

- **Identifiers:** `GHSA-jgcr-9c2q-rvp8` · `CVE-2008-6682`
- **State:** Confirmed
- **Severity:** No CVSS score
- **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:** 17 May 2022
- **Updated:** 6 Dec 2024
- **Reviewed by a person:** No

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

## Affected packages

- `org.apache.struts:struts2-core` (Maven): affected `>=2.0.0, <2.0.11.1 || >=2.1.0, <2.1.1`; fixed in `2.0.11.1`, `2.1.1`

## Machine-written summary

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

> Apache Struts struts2-core versions 2.0.0 through 2.0.11 and 2.1.0 before 2.1.1 are vulnerable to cross-site scripting through improper handling of double quote characters in the href attribute of the s:a tag and parameters in the action attribute of the s:url tag. A remote attacker can inject arbitrary web script or HTML. Upgrade to struts2-core 2.0.11.1 or 2.1.1.

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

No source has published a CVSS score for this record yet.

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

## Timeline

- 31 Oct 2026, 15:12 UTC: First seen by agentprime
- 31 Oct 2026, 15:12 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-jgcr-9c2q-rvp8)

## Sources

- [GitHub Advisory Database: GHSA-jgcr-9c2q-rvp8](https://github.com/advisories/GHSA-jgcr-9c2q-rvp8)
- [OSV: GHSA-jgcr-9c2q-rvp8](https://osv.dev/vulnerability/GHSA-jgcr-9c2q-rvp8)
- <https://nvd.nist.gov/vuln/detail/CVE-2008-6682>
- <https://github.com/apache/struts/commit/09147ffad2b3046ed21af0f524c5088e2ac551e6>
- <https://github.com/apache/struts/commit/bd3f2f59c9b09f70aed3ebab6bb69b464ee2d6cb>
- <https://github.com/apache/struts/commit/dae026a0f0511f83852053bae9d5a622e7f80486>
- <https://github.com/apache/struts>
- <https://issues.apache.org/struts/browse/WW-2414>
- <https://issues.apache.org/struts/browse/WW-2427>
- <https://web.archive.org/web/20080610075918/http://www.nabble.com/Feedback%3A-WW-2414%2C-XSS-attack-is-possible-if-using-%3Cs%3Aurl-...%3E-and-%3Cs%3Aa-...%3E-td14771449i20.html>
- <https://web.archive.org/web/20080611112834/http://www.nabble.com/Feedback%3A-WW-2414%2C-XSS-attack-is-possible-if-using-%3Cs%3Aurl-...%3E-and-%3Cs%3Aa-...%3E-td14771449.html>
- <https://web.archive.org/web/20200229155553/http://www.securityfocus.com/bid/34686>

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

---

The web page: <https://agentprime.io/advisories/GHSA-jgcr-9c2q-rvp8/>. Everything for agents: <https://agentprime.io/llms.txt>.
