Skip to content

build: upgrade Flask and Werkzeug to 3.x - #1743

Open
toabctl wants to merge 1 commit into
pinterest:masterfrom
toabctl:flask-3
Open

toabctl wants to merge 1 commit into
pinterest:masterfrom
toabctl:flask-3

Conversation

@toabctl

@toabctl toabctl commented Nov 10, 2026

Copy link
Copy Markdown

Flask 3 removed flask.Markup, flask.json.JSONEncoder and app.json_encoder. Import Markup from markupsafe and plug the custom encoder in through a JSON provider. Flask-Login 0.6.2 imports werkzeug.urls.url_decode, which Werkzeug 3 removed, so bump it to 0.6.3.

Flask 3.1.3, Werkzeug 3.1.9. Supersedes the open Werkzeug security bumps (#1710, #1647 and others).

Testing

  • make test passes

Flask 3 removed flask.Markup, flask.json.JSONEncoder and
app.json_encoder. Import Markup from markupsafe and keep the custom
encoder through a JSON provider. Flask-Login 0.6.2 does not work with
Werkzeug 3.
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.

1 participant