CVE-2016-2162 Apache Struts XSS Vulnerability
Remote attackers can execute arbitrary scripts in user browsers via unsanitized locale text in Apache Struts, requiring an upgrade to mitigate.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2016-2162?
CVE-2016-2162 is a medium-severity cross-site scripting vulnerability in Apache Struts, published on 12 Apr 2016. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Apache Struts 2.x before 2.3.25 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.
Weakness: CWE-79
Which versions are affected by CVE-2016-2162?
2 open source packages ship an affected version, including org.apache.struts:struts2-core. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.struts:struts2-core Maven | From 2.0.0 | 2.3.28 |
org.apache.struts:struts2-core Maven | From 2.0.0 | 2.3.28 |
Products include Apache Struts.
How do I fix CVE-2016-2162?
Upgrade org.apache.struts:struts2-core to 2.3.28 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2016-2162 being exploited?
There is no known exploitation of CVE-2016-2162 in the wild and no public exploit code.
Other vulnerabilities in Apache Struts
Sources
Also known as GHSA-2j4q-9fff-236j.