To reproduce, point swagger-ui at a JSON schema file that uses a model with a property containing <script>alert(1)</script>. The script will execute. I've attached a sinatra server that demonstrates the issue by replacing the "photoUrls" property with "photoUrls<script>alert(1)</script>":
https://gist.github.com/joevennix/b2bc8c04fd74f2f5d2b2
To reproduce, point swagger-ui at a JSON schema file that uses a model with a property containing
<script>alert(1)</script>. The script will execute. I've attached a sinatra server that demonstrates the issue by replacing the "photoUrls" property with"photoUrls<script>alert(1)</script>":https://gist.github.com/joevennix/b2bc8c04fd74f2f5d2b2