Skip to content
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

Obsolete & Vulnerable SwaggerUI #141

Open
LukasForst opened this issue Sep 20, 2022 · 1 comment
Open

Obsolete & Vulnerable SwaggerUI #141

LukasForst opened this issue Sep 20, 2022 · 1 comment

Comments

@LukasForst
Copy link

LukasForst commented Sep 20, 2022

Hey,

we discovered that one your projects is using this library apistrap to provide Swagger UI. Unfortunately, according to the apidocs.html you're using version3.21.0 that is vulnerable to XSS - see GHSA-qrmm-w75w-3wpx .

Our temporary workaround is to disable Swagger UI completely by setting oapi.ui_url = None OR by including following CSP header with all swagger related stuff:

Content-Security-Policy: default-src 'self'; connect-src 'self'; media-src data:; img-src 'self' data:; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline'; 

Not sure, if you're using this library anywhere else, but I'd recommend updating Swagger UI dependency to latest version.

@janbuchar
Copy link
Collaborator

Hello, thanks for the heads up! We already migrated most of our relevant infrastructure to FastAPI, but we will surely upgrade swagger ui here at some point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants