Low

Cross-site Scripting in Apache Struts

  • Disclosed: 17.05.2022
  • Updated: 11.10.2026 12:21

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

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

References

CVSS score -
Weakness (CWE)
CWE-79
Platform
Java / Kotlin (Maven)
Package
org.apache.struts:struts2-core
Disclosed
17.05.2022
Updated
11.10.2026 12:21

Sources and licenses

OSV / GitHub Advisory Database - GHSA-56f8-g68r-j699 - 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. Cross-site Scripting in Apache Struts this entry
    Low CVE-2011-1772 < 2.2.3 2.2.3
  10. 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
  11. High CVE-2013-4316 >= 2.0.0, < 2.3.15.2 2.3.15.2
  12. Critical · 9.8 CVE-2016-4436 >= 2.0.0, < 2.3.29, >= 2.5-BETA1, < 2.5.1 2.3.29, 2.5.1
  13. High CVE-2015-1831 >= 2.0.0, < 2.3.20.1 2.3.20.1
  14. High · 7.5 CVE-2015-5209 < 2.3.24.1 2.3.24.1
  15. High CVE-2013-2134 >= 2.0.0, < 2.3.14.3 2.3.14.3
  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
Show more (20) Showing 20 of 40

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.