CVE-2011-2087 Apache Struts Multiple XSS Vulnerabilities
Remote attackers can inject arbitrary web script or HTML via parameter values in Apache Struts 2.x Java Templates plugin, requiring user interaction to execute.
- 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-2011-2087?
CVE-2011-2087 is a medium-severity cross-site scripting vulnerability in Apache Struts, published on 13 May 2011. 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
Multiple cross-site scripting (XSS) vulnerabilities in component handlers in the javatemplates (aka Java Templates) plugin in Apache Struts 2.x before 2.2.3 allow remote attackers to inject arbitrary web script or HTML via an arbitrary parameter value to a .action URI, related to improper handling of value attributes in (1) FileHandler.java, (2) HiddenHandler.java, (3) PasswordHandler.java, (4) RadioHandler.java, (5) ResetHandler.java, (6) SelectHandler.java, (7) SubmitHandler.java, and (8) TextFieldHandler.java.
Weakness: CWE-79
Which versions are affected by CVE-2011-2087?
2 open source packages ship an affected version, including org.apache.struts:struts2-parent. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.struts:struts2-parent Maven | All versions | 2.2.3 |
org.apache.struts:struts2-parent Maven | All versions | 2.2.3 |
Products include Apache Struts.
How do I fix CVE-2011-2087?
Upgrade org.apache.struts:struts2-parent to 2.2.3 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-2011-2087 being exploited?
There is no known exploitation of CVE-2011-2087 in the wild and no public exploit code.
Other vulnerabilities in Apache Struts
Sources
Also known as GHSA-5pgj-r7c6-7c7w.