Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-4760

MEDIUM 4.8EPSS 19%

Authenticated Stored Cross-Site Scripting (XSS) in Multiple WSO2 Products via API Document Upload in Publisher

Also known as GHSA-cmjc-qp7j-xgwr

Mitigation

  • Upgrade org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.api to 9.31.117 or later.
  • Upgrade org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.rest.api.publisher.v1 to 9.31.117 or later.

Who should check

  • Projects that depend on Maven package org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.api (< 9.31.117)
  • Projects that depend on Maven package org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.rest.api.publisher.v1 (< 9.31.117)
  • Anyone running WSO2 API Manager >= 3.2.0, < 3.2.0.428; >= 3.2.1, < 3.2.1.48; >= 4.1.0, < 4.1.0.209; >= 4.2.0, < 4.2.0.145; >= 4.3.0, < 4.3.0.60; >= 4.4.0, < 4.4.0.23; >= 4.5.0, < 4.5.0.7
  • Anyone running WSO2 API Control Plane >= 4.5.0, < 4.5.0.8
  • Anyone running WSO2 Universal Gateway >= 4.5.0, < 4.5.0.7
  • Anyone running WSO2 Traffic Manager >= 4.5.0, < 4.5.0.7
  • Anyone running WSO2 Carbon API Management API >= 6.7.206, < 6.7.206.559; >= 6.7.210, < 6.7.210.48; >= 9.20.74, < 9.20.74.365; >= 9.28.116, < 9.28.116.321; >= 9.29.120, < 9.29.120.163; >= 9.30.67, < 9.30.67.80; >= 9.31.86, < 9.31.86.30

Vulnerability facts

Affected
org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.api < 9.31.117; org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.rest.api.publisher.v1 < 9.31.117
Fixed in
9.31.117
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, login needed
CVSS
4.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: High
  • User interaction: Required
  • Scope: Changed (impact reaches other components)
  • Confidentiality impact: Low
  • Integrity impact: Low
  • Availability impact: None
EPSS
0.33% chance of exploitation in 30 days (percentile 19, 2026-11-26)
CWE
CWE-79
Published
Modified

Description

An authenticated stored cross-site scripting (XSS) vulnerability exists in multiple WSO2 products due to improper validation of user-supplied input during API document upload in the Publisher portal. A user with publisher privileges can upload a crafted API document containing malicious JavaScript, which is later rendered in the browser when accessed by other users. A successful attack could result in redirection to malicious websites, unauthorized UI modifications, or exfiltration of browser-accessible data. However, session-related sensitive cookies are protected by the httpOnly flag, preventing session hijacking.

Affected and fixed versions

Package / productAffectedFixedSource
Maven org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.api< 9.31.1179.31.117osv
Maven org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.rest.api.publisher.v1< 9.31.1179.31.117osv
WSO2 API Manager>= 3.2.0, < 3.2.0.428; >= 3.2.1, < 3.2.1.48; >= 4.1.0, < 4.1.0.209; >= 4.2.0, < 4.2.0.145; >= 4.3.0, < 4.3.0.60; >= 4.4.0, < 4.4.0.23; >= 4.5.0, < 4.5.0.7—cvelist
WSO2 API Control Plane>= 4.5.0, < 4.5.0.8—cvelist
WSO2 Universal Gateway>= 4.5.0, < 4.5.0.7—cvelist
WSO2 Traffic Manager>= 4.5.0, < 4.5.0.7—cvelist
WSO2 Carbon API Management API>= 6.7.206, < 6.7.206.559; >= 6.7.210, < 6.7.210.48; >= 9.20.74, < 9.20.74.365; >= 9.28.116, < 9.28.116.321; >= 9.29.120, < 9.29.120.163; >= 9.30.67, < 9.30.67.80; >= 9.31.86, < 9.31.86.30—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2025-4760. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-4760.md
Affected: org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.api < 9.31.117; org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.rest.api.publisher.v1 < 9.31.117
Fixed in: 9.31.117

Steps:
1. Search this machine and project for org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.api (Maven), org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.rest.api.publisher.v1 (Maven), WSO2 API Manager, WSO2 API Control Plane, WSO2 Universal Gateway, WSO2 Traffic Manager: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2025-4760 being exploited?

There is no confirmed exploitation: CVE-2025-4760 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2025-4760?

Medium: CVSS 4.8 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.

Which versions are affected by CVE-2025-4760?

org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.api < 9.31.117; org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.rest.api.publisher.v1 < 9.31.117.

Is there a fix for CVE-2025-4760?

Yes. Fixed in 9.31.117. Upgrade org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.api to 9.31.117 or later. Upgrade org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.rest.api.publisher.v1 to 9.31.117 or later.

How do I check if I'm affected by CVE-2025-4760?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors