VDB
Sign up
LOW

GHSA-56f8-g68r-j699

Cross-site Scripting in Apache Struts

Quick fix

GHSA-56f8-g68r-j699 — org.apache.struts:struts2-core: upgrade to the fixed version with the command below.

# pom.xml: bump <version>2.2.3</version> for org.apache.struts:struts2-core

Details

Multiple Cross-Site Scripting (XSS) in XWork generated error pages in Apache Struts. By default, XWork doesn't escape action's names in automatically generated error page, allowing for a successful XSS attack. When Dynamic Method Invocation (DMI) is enabled, the action name is generated dynamically base on request parameters. This allows to call non-existing page and method to produce error page with injected code as below. As of Struts 2.2.3 the action names are escaped when automatically generated error pages are rendered.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.apache.struts:struts2-core
Introduced in: 0Fixed in: 2.2.3
Fix# pom.xml: bump <version>2.2.3</version> for org.apache.struts:struts2-core

References