Technical impact
Improper neutralization of input during web page generation (CWE‑79) allows an attacker to inject malicious scripts into the Swagger UI page served by the OpenAPI module of Apache Axis2/Java. The vulnerability arises because the module writes the value of the request’s Host header directly into the page without encoding or validation. If an attacker controls the Host header, arbitrary JavaScript can be executed in the context of the Axis2 origin, enabling payloads that can steal session tokens, deface the web page, or hijack user accounts.
Affected Systems
Apache Software Foundation – Apache Axis2/Java, version 2.0.1 is affected. Users running this version are susceptible to the flaw; upgrading to 2.0.2 removes the vulnerability.
Risk and Exploitability
The flaw can be triggered remotely by sending a crafted HTTP request with a malicious Host header to the Swagger UI endpoint. EPSS score of < 1% indicates a very low probability of exploitation, and the vulnerability is not listed in the CISA KEV catalog. The CVSS score of 6.1 indicates a medium severity. While exploitation is possible, the impact is limited compared to higher CVSS scores. If an attacker succeeds, arbitrary JavaScript could run in the context of the Axis2 origin, potentially allowing session theft, defacement, or hijacking of user accounts.