Medium

Cross-site Scripting in Apache Struts

  • Disclosed: 14.05.2022
  • Updated: 11.10.2026 11:22

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.apache.struts:struts2-core < 2.3.20 2.3.20

References

CVSS score 6.1/10
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness (CWE)
CWE-79
Platform
Java / Kotlin (Maven)
Package
org.apache.struts:struts2-core
Disclosed
14.05.2022
Updated
11.10.2026 11:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-vwhv-j36g-5rm8 - CC BY 4.0

Vulnerability history: org.apache.struts:struts2-core

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (60) in the archive
Total entries
60
First → latest
10.2018 01.2026
Without a fix
0
Exploited in attacks
6

Severity breakdown

  • Critical 14
  • High 25
  • Medium 20
  • Low 1

Disclosures per year

  1. 2018: 6
  2. 2019: 0
  3. 2020: 0
  4. 2021: 1
  5. 2022: 45
  6. 2023: 4
  7. 2024: 1
  8. 2025: 2
  9. 2026: 1
Severity:
  1. High · 8.1 CVE-2025-68493 >= 2.0.0, <= 2.3.37, >= 2.5.0, <= 2.5.33, >= 6.0.0, < 6.1.1 6.1.1
  2. High · 8.2 CVE-2025-66675 >= 2.0.0, < 6.8.0, >= 7.0.0, < 7.1.1 6.8.0, 7.1.1
  3. High · 7.5 CVE-2025-64775 >= 6.0.0, < 6.8.0, >= 7.0.0, < 7.1.1, >= 2.0.0, <= 2.3.37, >= 2.5.0, <= 2.5.33 6.8.0, 7.1.1
  4. Critical · 9.8 CVE-2024-53677 < 6.4.0 6.4.0
  5. Critical · 9.8 CVE-2023-50164 >= 2.0.0, < 2.5.33, >= 6.0.0, < 6.3.0.2 2.5.33, 6.3.0.2
  6. High · 7.5 CVE-2023-41835 >= 6.2.0, < 6.3.0.1, >= 6.0.0, < 6.1.2.2, < 2.5.32 6.3.0.1, 6.1.2.2, 2.5.32
  7. High · 7.5 CVE-2023-34396 < 2.5.31, >= 6.0.0, < 6.1.2.1 2.5.31, 6.1.2.1
  8. High · 7.5 CVE-2019-0233 >= 2.0.0, < 2.5.22 2.5.22
  9. Critical · 9.8 CVE-2016-3082 < 2.3.20.3, >= 2.3.24, < 2.3.24.3, >= 2.3.28, < 2.3.28.1 2.3.20.3, 2.3.24.3, 2.3.28.1
  10. High CVE-2013-4316 >= 2.0.0, < 2.3.15.2 2.3.15.2
  11. Critical · 9.8 CVE-2016-4436 >= 2.0.0, < 2.3.29, >= 2.5-BETA1, < 2.5.1 2.3.29, 2.5.1
  12. High CVE-2015-1831 >= 2.0.0, < 2.3.20.1 2.3.20.1
  13. High · 7.5 CVE-2015-5209 < 2.3.24.1 2.3.24.1
  14. High CVE-2013-2134 >= 2.0.0, < 2.3.14.3 2.3.14.3
  15. Cross-site Scripting in Apache Struts this entry
    Medium · 6.1 CVE-2015-5169 < 2.3.20 2.3.20
  16. High CVE-2013-2135 >= 2.0.0, < 2.3.14.3 2.3.14.3
  17. High CVE-2012-0838 < 2.2.3.1 2.2.3.1
  18. High · 8.8 CVE-2016-4461 >= 2.0.0, < 2.3.29 2.3.29
  19. High CVE-2014-0112 < 2.3.20 2.3.20
  20. High CVE-2013-1966 >= 2.0.0, < 2.3.14.2 2.3.14.2
  21. High CVE-2014-0113 < 2.3.20 2.3.20
  22. High CVE-2013-1965 < 2.3.14.3 2.3.14.3
  23. High CVE-2014-0116 < 2.3.20 2.3.20
  24. Critical · 9.8 CVE-2016-3087 >= 2.3.19, < 2.3.20.3, >= 2.3.21, < 2.3.24.3, >= 2.3.25, < 2.3.28.1 2.3.20.3, 2.3.24.3, 2.3.28.1
  25. High · 8.1 Exploited in attacks CVE-2016-3081 >= 2.3.19, < 2.3.20.3, >= 2.3.21, < 2.3.24.3, >= 2.3.25, < 2.3.28.1 2.3.20.3, 2.3.24.3, 2.3.28.1
  26. Critical · 9.8 CVE-2016-4438 >= 2.3.19, < 2.3.29 2.3.29
  27. High · 8.8 CVE-2016-0785 >= 2.0.0, < 2.3.20.3, >= 2.3.24, < 2.3.24.3 2.3.20.3, 2.3.24.3
  28. High · 8.1 CVE-2013-2115 >= 2.0.0, < 2.3.14.2 2.3.14.2
  29. Critical · 9.8 Exploited in attacks CVE-2013-2251 < 2.3.15.1 2.3.15.1
  30. Critical · 9.8 Exploited in attacks CVE-2012-0391 < 2.2.3.1 2.2.3.1
  31. High · 8.8 CVE-2012-1592 >= 2.0, < 2.5.22 2.5.22
  32. Critical · 9.8 CVE-2011-3923 >= 2.0.0, < 2.3.1.2 2.3.1.2
  33. Critical · 9.8 CVE-2021-31805 >= 2.0.0, < 2.5.30 2.5.30
  34. Critical · 9.8 Exploited in attacks CVE-2020-17530 >= 2.0.0, < 2.5.26 2.5.26
  35. High · 8.1 Exploited in attacks CVE-2018-11776 >= 2.0.4, < 2.3.35, >= 2.5, < 2.5.17 2.3.35, 2.5.17
  36. Critical · 10.0 Exploited in attacks CVE-2017-5638 >= 2.3.0, < 2.3.32, >= 2.5.0, < 2.5.10.1 2.3.32, 2.5.10.1
  37. High · 7.5 CVE-2017-9804 >= 2.3.7, < 2.3.34, >= 2.5.0, < 2.5.13 2.3.34, 2.5.13
  38. High · 7.5 CVE-2017-9787 >= 2.3.7, < 2.3.33, >= 2.5.0, < 2.5.12 2.3.33, 2.5.12
  39. Critical · 9.8 CVE-2017-12611 >= 2.0.1, < 2.3.34, >= 2.5.0, < 2.5.11 2.3.34, 2.5.11

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.