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.
Problem types
CWE-79 Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting')
Product status
Any version before 3.2.0
3.2.0 (custom) before 3.2.0.428
3.2.1 (custom) before 3.2.1.48
4.1.0 (custom) before 4.1.0.209
4.2.0 (custom) before 4.2.0.145
4.3.0 (custom) before 4.3.0.60
4.4.0 (custom) before 4.4.0.23
4.5.0 (custom) before 4.5.0.7
4.5.0 (custom) before 4.5.0.8
4.5.0 (custom) before 4.5.0.7
4.5.0 (custom) before 4.5.0.7
6.7.206 (custom) before 6.7.206.559
6.7.210 (custom) before 6.7.210.48
9.20.74 (custom) before 9.20.74.365
9.28.116 (custom) before 9.28.116.321
9.29.120 (custom) before 9.29.120.163
9.30.67 (custom) before 9.30.67.80
9.31.86 (custom) before 9.31.86.30
9.31.117 (custom)
Credits
Phạm Hồ Anh Dũng
References
security.docs.wso2.com/...ty-advisories/2025/WSO2-2025-4104/