-
Notifications
You must be signed in to change notification settings - Fork 9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Property names are not escaped and allow XSS #1865
Comments
Any update on when this might be fixed? Using a |
@danderson00 - please consider submitting a PR to fix the issue, but we'll try to look into it as soon as possible as well. |
@fehguy is there an ETA for this issue's resolution? |
Any day now |
See a906cff |
Is there any CVE for this one? |
FYI, this is also still being reported as not fixed on the nodesecurity.io advisory which is used by some dependency scanners like david-dm. Not sure how to report the version it is fixed in. |
@fehguy what's the status here? |
We've pushed out three close releases - 2.2.1, 2.2.2 and 2.2.3 handling all the known XSS issues we've had whether reported to us (publicly or otherwise) or with our own experience, including this one. Should you find any new additional XSS issues, please open new tickets on those and we'll address them as soon as possible. |
@bradygaster I contacted the node security folks and they've updated their page to show that 2.2.1 has this fixed. |
Thanks for your work on this! |
@fehguy thanks so much! got your email. looks like things are good. |
Just an FYI a cve-2016-1000229 has been assigned to this issue. |
as per swagger-api/swagger-ui#1865 NVD tracks this CVE as version-less. Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
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
The text was updated successfully, but these errors were encountered: