GHSA-vwhv-j36g-5rm8
Cross-site Scripting in Apache Struts
Quick fix
GHSA-vwhv-j36g-5rm8 — org.apache.struts:struts2-core: upgrade to the fixed version with the command below.
# pom.xml: bump <version>2.3.20</version> for org.apache.struts:struts2-coreDetails
When the Struts2 debug mode is turned on, under certain conditions an arbitrary script may be executed in the 'Problem Report' screen. Also if JSP files are exposed to be accessed directly it's possible to execute an arbitrary script.
It is generally not advisable to have debug mode switched on outside of the development environment. Debug mode should always be turned off in production setup. Also never expose JSPs files directly and hide them inside WEB-INF folder or define dedicated security constraints to block access to raw JSP files.
Struts >= 2.3.20 is not vulnerable to this attack. We recommend upgrading to Struts 2.3.20 or higher.
Are you affected?
Enter the version of the package you're using.
Affected packages
0Fixed in: 2.3.20# pom.xml: bump <version>2.3.20</version> for org.apache.struts:struts2-coreReferences
- https://nvd.nist.gov/vuln/detail/CVE-2015-5169[ADVISORY]
- https://bugzilla.redhat.com/show_bug.cgi?id=1260087[WEB]
- https://github.com/apache/struts[PACKAGE]
- https://security.netapp.com/advisory/ntap-20180629-0003[WEB]
- https://struts.apache.org/docs/s2-025.html[WEB]
- http://jvn.jp/en/jp/JVN95989300/index.html[WEB]
- http://jvndb.jvn.jp/en/contents/2015/JVNDB-2015-000125.html[WEB]