NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Maven

CVE-2025-4760: WSO2 carbon-apimgt affected by an authenticated stored cross-site scripting (XSS) vulnerability

mediumCVSS 3.1 4.8GHSA-cmjc-qp7j-xgwr

An authenticated stored Cross-Site Scripting (XSS) vulnerability exists in WSO2 API Manager components (carbon-apimgt) due to insufficient validation of user-supplied input during API document upload in the Publisher portal. A user with publisher privileges can upload a crafted API document whose contents are later rendered in the UI for other users, leading to attacker-controlled script execution.

Published Sep 23, 2025 · Updated Sep 27, 2025

Affected packages

org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.api

Ecosystem
Maven
Affected
< 9.31.117
Fixed in
9.31.117
Check
mvn dependency:tree -Dincludes=org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.api

org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.rest.api.publisher.v1

Ecosystem
Maven
Affected
< 9.31.117
Fixed in
9.31.117
Check
mvn dependency:tree -Dincludes=org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.rest.api.publisher.v1

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

An authenticated stored Cross-Site Scripting (XSS) vulnerability exists in WSO2 API Manager components (carbon-apimgt) due to insufficient validation of user-supplied input during API document upload in the Publisher portal.

A user with publisher privileges can upload a crafted API document whose contents are later rendered in the UI for other users, leading to attacker-controlled script execution. Likely outcomes include redirection to malicious sites, unauthorized UI modifications, or exfiltration of data accessible to the browser; session hijacking is mitigated by the use of HttpOnly session cookies.

To remediate, update to version 9.31.117 or above.

Credited to cai0duque.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology