---
id: "CVE-2026-123766"
page: "https://infrastack.ai/live/CVE-2026-123766"
kind: "vulnerability"
aliases: ["CVE-2026-123766"]
title: "Apache Axis2: Host header reflected into Swagger UI page enables script injection"
severity: "medium"
cvss: null
epss: null
exploited: false
status: "open"
category: "runtime"
products: []
ecosystems: []
tags: ["apache-axis2", "java", "runtime", "web-services"]
not_affected_if: ["default-config"]
published_at: "2026-11-09T11:17:24+00:00"
first_seen_at: "2026-11-09T11:26:04+00:00"
updated_at: "2026-11-09T11:26:51+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-123766", "first_seen_at": "2026-11-09T11:26:04+00:00"}]
exploit_sources: []
---

# Apache Axis2: Host header reflected into Swagger UI page enables script injection

Link for people: https://infrastack.ai/live/CVE-2026-123766 (this .md is for agents)

The OpenAPI module of Apache Axis2/Java writes a value taken from the request's Host header into the Swagger UI page without encoding it. An attacker can get script to run in the browser of a user visiting the Axis2 origin.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the Axis2/Java version in use: `2.0.1` is affected.
- Look for the OpenAPI module (Swagger UI page) enabled on the Axis2 deployment.

## Fix

- Apache Axis2/Java: upgrade to `2.0.2`

## Timeline

- 2026-11-09T11:26:04+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-123766

## Documents

- [fix] Patch: github.com https://github.com/apache/axis-axis2-java-core/commit/1671a68660df39459bf22f7b00309e2a8e782117

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
