You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just patched this, and will release a new version shortly.
Thanks for the report, @dexwiz! In the future, please direct security issues to [email protected] instead of our issue tracker, as noted in the README 😄
Demonstration API definition
Javascript can be injected into the Terms of Service link at the top of the page using javascript in the termsOfServiceField.
Example
This vulnerability can be tested on the example petstore site. Upon loading, clicking the Terms of Service link will execute the malicious script.
http://petstore.swagger.io/?url=https://gist.githubusercontent.com/dileepdasari/7120f06a4bcfd56d6d7572a6dc1c6309/raw/7a5f5d548a3e68afc5122c51bcf9d33a47830819/xsstest.json
The text was updated successfully, but these errors were encountered: