XXE vulnerability in XWork component |
Who should read this | All Struts 2 developers and users |
|---|---|
Impact of vulnerability | Disclosure of Data, Denial of Service, Server Side Request Forgery |
Maximum security rating | Important |
Recommendation | Upgrade to Struts 6.1.1 at least |
Affected Software | |
Reporters | ZAST.AI - https://zast.ai |
CVE Identifier | CVE-2025-68493 |
Parsing of XML configuration in XWork component does not validate XML in proper way and it's vulnerable to XML external entity (XXE) injection.
Upgrade to Struts 6.1.1 at least.
This change is backward compatible.
Users unable to upgrade immediately can mitigate XXE by either:
-Dxwork.saxParserFactory to a custom factory class that disables external entities by defaultor
-Djavax.xml.accessExternalDTD="" -Djavax.xml.accessExternalSchema="" -Djavax.xml.accessExternalStylesheet="" |