flask-restx
flask-restx copied to clipboard
Update Swagger UI to 4.1.3 or greater to resolve CVE-2018-25031
Repro Steps (if applicable)
- Observe that package.json references swagger-ui 3.48 and up
- Swagger fixed CVE-2018-25031 in December 2021 with release of Swagger-UI 4.1.3
- This can also be observed with the version of Swagger-UI included in the /static file when Flask-RestX is installed.
Expected Behavior
Flask-RestX installs version of Swagger-UI 4.1.3 or above
Actual Behavior
Flask-RestX installs a vulnerable version of Swagger UI
Error Messages/Stack Trace
None. Dependency scanners will flag this as well.
Environment
- Python version - Multiple 3.x
- Flask version - Multiple
- Flask-RESTX version: 0.5.1
- Other installed Flask extensions
Additional Context
The Swagger UI 3 -> 4 breaking changes seem to be limited to react / redux per release notes, so I believe simply updating the package.json file will fix the issue.
If you found source lines for dependencies problem, I can include fix into my restx-monkey patches.
Hi again, patched in restx-monkey 0.3+ . Feedback is welcome. Patch only works if user account has rights to edit site-packages directory with flask-restx/static
files. Internally patch replaces files with new assets.
This is now updated in flask-restx==1.1.0
.