Security Advisory WSO2-2021-1315

Published: September 02, 2021

Version: 1.0.0

Severity: Medium

CVSS Score: 4.8 (CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N)


  • WSO2 API Manager : 2.2.0 , 2.5.0 , 2.6.0 , 3.0.0 , 3.1.0
  • WSO2 API Microgateway : 2.2.0
  • WSO2 IoT Server : 3.3.1


A Stored Cross Site Scripting(XSS) vulnerability in API Publisher.


A Stored Cross Site Scripting vulnerability can be exploited by tampering a request parameter in the API Publisher's API documentation feature, which will get reflected and malformed the output when viewing the specific tampered API documentation.


In order to exploit this vulnerability, the malicious actor should have a valid user account of the API Publisher. If such access could be obtained, they could make a change that impacts other users viewing the affected page. The possible impacts include getting the browser redirected to a malicious website, making changes in the UI of the web page, retrieving information from the browser or harm otherwise. However, since all the session related sensitive cookies are set with "httpOnly" flag and protected, session hijacking or similar attacks would not be possible.


If the latest version of the affected WSO2 product is not mentioned under the affected product list, you may migrate to the latest version to receive security fixes.

Otherwise, you may apply the relevant fixes to the product based on the public fix(s):


If you are a WSO2 customer with a support subscription, use WSO2 Updates in order to apply the fix.