MEDIUM6.1
GHSA-2j4q-9fff-236j
Apache Struts XSS Vulnerability
Quick fix
GHSA-2j4q-9fff-236j — org.apache.struts:struts2-core: upgrade to the fixed version with the command below.
# pom.xml: bump <version>2.3.28</version> for org.apache.struts:struts2-coreDetails
Apache Struts 2.x before 2.3.28 does not sanitize text in the Locale object constructed by I18NInterceptor, which might allow remote attackers to conduct cross-site scripting (XSS) attacks via unspecified vectors involving language display.
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.3.28Fix
# pom.xml: bump <version>2.3.28</version> for org.apache.struts:struts2-coreReferences
- https://nvd.nist.gov/vuln/detail/CVE-2016-2162[ADVISORY]
- https://github.com/apache/struts/commit/fc2179cf1ac9fbfb61e3430fa88b641d87253327[WEB]
- https://github.com/apache/struts[PACKAGE]
- https://github.com/apache/struts/blob/f511034acd7b97e07d281169b38e2af40c94903d/core/src/main/java/org/apache/struts2/interceptor/I18nInterceptor.java[WEB]
- https://web.archive.org/web/20210123095722/http://www.securityfocus.com/bid/85070[WEB]
- https://web.archive.org/web/20210801130539/http://www.securitytracker.com/id/1035272[WEB]
- http://struts.apache.org/docs/s2-030.html[WEB]