CVE-2026-123766

Apache Axis2/Java: Cross-site scripting in the OpenAPI module's Swagger UI page

Published Nov 9, 2026 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
Description
Improper Neutralization of Input During Web Page Generation (Cross-site Scripting) vulnerability in the OpenAPI module of Apache Axis2/Java. The Swagger UI page served by the OpenAPI module wrote a value derived from the request's Host header into the page without encoding, allowing script injection in the context of the Axis2 origin. This issue affects Apache Axis2/Java: 2.0.1. Users are recommended to upgrade to version 2.0.2, which fixes the issue.

Analysis

AI-generated

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.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the 2.0.2 patch from the Apache Axis2/Java release to eliminate the vulnerability
  • If a patch cannot be applied immediately, configure the server to validate and restrict the Host header, allowing only properly normalized values or rejecting requests with unexpected hostnames
  • Implement a strong Content Security Policy (e.g., default-src 'self'; script-src 'self') and enable XSS protection headers to mitigate the impact of residual injection attempts

Generated by OpenCVE AI on November 15, 2026 at 08:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

Type Values Removed Values Added
First Time appeared Apache
Apache apache Axis2/java
Vendors & Products Apache
Apache apache Axis2/java
Type Values Removed Values Added
Description Improper Neutralization of Input During Web Page Generation (Cross-site Scripting) vulnerability in the OpenAPI module of Apache Axis2/Java. The Swagger UI page served by the OpenAPI module wrote a value derived from the request's Host header into the page without encoding, allowing script injection in the context of the Axis2 origin. This issue affects Apache Axis2/Java: 2.0.1. Users are recommended to upgrade to version 2.0.2, which fixes the issue.
Title Apache Axis2/Java: Cross-site scripting in the OpenAPI module's Swagger UI page
Weaknesses CWE-79
References
Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Nov 12, 2026, 7:57 PM
Reserved
Nov 6, 2026, 1:54 PM
Status
Awaiting Analysis
Published
Nov 9, 2026, 11:17 AM
Modified
Nov 12, 2026, 8:18 PM