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

Werkzeug + Flask vulnerabilities fixed with CKAN 2.10 #622

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

Beaker still doesn't have an upgrade path, so extend it
@nickumia-reisys nickumia-reisys marked this pull request as draft July 3, 2023 15:45
@nickumia-reisys nickumia-reisys marked this pull request as ready for review July 3, 2023 16:05
Hoping to fix 'TypeError: send_file() got an unexpected keyword argument 'cache_timeout''
 AttributeError: module 'flask.json' has no attribute 'JSONEncoder'
it is a ckan 2.10 dependency, but it's breaking resource loading... it's not on ckan 'master', so let's try without it
I think the problem is with the 2.2.0 release
@nickumia-reisys
Copy link
Contributor Author

nickumia-reisys commented Jul 7, 2023

I think we can safely say that we've narrowed the problem down to the CKAN middleware (more flask than werkzeug, although it might be a complex dependency). The issue is definitely something that broke with the 2.2.0 release of Flask: https://flask.palletsprojects.com/en/2.3.x/changes/#version-2-2-0

I've tested the following combination pairs:

Werkzeug Flask Success?
2.3.6 2.3.3
2.3.0 2.3.0
2.2.0 2.2.0
2.3.6 2.1.3
2.2.0 2.1.3
2.1.2 2.1.3 ✔️
2.0.3 2.0.3 ✔️

The latest 2.1.x versions work and then the code automatically breaks on the 2.2.0 bump.

@nickumia-reisys
Copy link
Contributor Author

Full upgrade of this depends on the following PR which is merged into main ckan, but has not been released yet.

@nickumia-reisys
Copy link
Contributor Author

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

Successfully merging this pull request may close these issues.

3 participants