CVE-2016-2162 Apache Struts XSS Vulnerability

Medium 6.1 Published Updated

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.

PackageAffectedFixed in
org.apache.struts:struts2-core MavenFrom 2.0.02.3.28
org.apache.struts:struts2-core MavenFrom 2.0.02.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.

All Apache Struts vulnerabilities

Sources

Also known as GHSA-2j4q-9fff-236j.

Is CVE-2016-2162 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free