Skip to content

Update Flask and Werkzeug to patched 3.1 releases - #239

Open
grantcko wants to merge 1 commit into
ActivityWatch:masterfrom
grantcko:security/patch-flask-werkzeug
Open

grantcko wants to merge 1 commit into
ActivityWatch:masterfrom
grantcko:security/patch-flask-werkzeug

Conversation

@grantcko

Copy link
Copy Markdown

The current constraints still allow versions flagged by pip-audit. Require Flask 3.1.3 and Werkzeug 3.1.9 and refresh the Poetry lockfile. Both releases require Python 3.9 or later, so this raises the minimum from 3.8. The MarkupSafe import overlaps with #216 and is needed for Flask 3.

make test on macOS with Python 3.12 passed 225 tests with 2 skipped.

Created with GPT-6.2 Astra in Codex.

@greptile-apps

greptile-apps Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5 · The PR appears safe to merge; no actionable issues were found.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Requires Flask 3.1.3 and Werkzeug 3.1.9 or later within their declared major-version ranges.

  • aw-server now requires Python 3.9 and newer Flask and Werkzeug releases.

No actionable issues were found. Tests were not run during this review.

Dropping Python 3.8 is intentional: grantcko states that the upgraded releases require Python 3.9.

Reviews (1) · Last reviewed commit: "Update Flask and Werkzeug to patched 3.1..." · Reviewed by Greptile

@TimeToBuildBob

Copy link
Copy Markdown
Contributor

Thanks for this. I checked head c7771a4 against the repo:

  • Raising the minimum to Python 3.9 matches what's already tested: build.yml runs only python_version: [3.9].
  • The locked flask-restx 1.3.0 supports Flask 3, and the markupsafe.escape import is the change Flask 3 requires (it overlaps with fix(custom_static): import escape from markupsafe for Flask 3 compatibility #216; whichever merges first, the other should be closed or rebased).
  • Lockfile, pyproject.toml and the ruff target-version move together, which is right.

What's left is on the maintainer side: Build, Lint and CodeQL on this head are held at action_required (fork workflows need a maintainer to approve them). Once they've run green on c7771a4, this looks ready to merge from my side.

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.

2 participants