MEDIUM
GHSA-jgcr-9c2q-rvp8
Apache Struts is vulnerable to Cross-site Scripting
Quick fix
GHSA-jgcr-9c2q-rvp8 — org.apache.struts:struts2-core: upgrade to the fixed version with the command below.
# pom.xml: bump <version>2.0.11.1</version> for org.apache.struts:struts2-coreDetails
Multiple cross-site scripting (XSS) vulnerabilities in Apache Struts 2.0.x before 2.0.11.1 and 2.1.x before 2.1.1 allow remote attackers to inject arbitrary web script or HTML via vectors associated with improper handling of (1) " (double quote) characters in the href attribute of an s:a tag and (2) parameters in the action attribute of an s:url tag.
Are you affected?
Enter the version of the package you're using.
Affected packages
Maven/org.apache.struts:struts2-core
Introduced in:
2.0.0Fixed in: 2.0.11.1Fix
# pom.xml: bump <version>2.0.11.1</version> for org.apache.struts:struts2-coreMaven/org.apache.struts:struts2-core
Introduced in:
2.1.0Fixed in: 2.1.1Fix
# pom.xml: bump <version>2.1.1</version> for org.apache.struts:struts2-coreReferences
- https://nvd.nist.gov/vuln/detail/CVE-2008-6682[ADVISORY]
- https://github.com/apache/struts/commit/09147ffad2b3046ed21af0f524c5088e2ac551e6[WEB]
- https://github.com/apache/struts/commit/bd3f2f59c9b09f70aed3ebab6bb69b464ee2d6cb[WEB]
- https://github.com/apache/struts/commit/dae026a0f0511f83852053bae9d5a622e7f80486[WEB]
- https://github.com/apache/struts[PACKAGE]
- https://issues.apache.org/struts/browse/WW-2414[WEB]
- https://issues.apache.org/struts/browse/WW-2427[WEB]
- 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[WEB]
- 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[WEB]
- https://web.archive.org/web/20200229155553/http://www.securityfocus.com/bid/34686[WEB]