Repository navigation
Upgrade urllib3, Werkzeug, oauthlib and Flask (Dependabot alerts) - #229
Merged
Merged
Conversation
- urllib3 2.7.0 -> 2.8.0 (GHSA-vxq7-64xx-v4gw, GHSA-gh4c-6fx4-qh6g, GHSA-8988-9cw3-xx77). The first two let a hostile server exhaust memory or hang a download, which the scraper and fetcher are exposed to. - Werkzeug 3.1.8 -> 3.1.9 (GHSA-g6x2-hccm-hh4m, Windows only). - oauthlib 3.3.1 -> 4.0.0 (GHSA-hj66-6f7g-4r5v, GHSA-xpv3-w29h-x7cv, server-side endpoints we do not use; pulled in by python-youtube). - Flask 2.3.3 -> 3.1.3 (GHSA-68rp-wp8r-4726; we use no Flask sessions). Drop the unused `_request_ctx_stack` import, which Flask 3.0 removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Clears all eight open Dependabot alerts on
master.fetcher.pyandscrapers/default.pyfetch external news sites with requests.safe_join()with Windows device names; production is Linux.queries/play.pyuses with an API key.Vary: Cookiewith Flask sessions, which we do not use.Flask 3.0 removed
flask._request_ctx_stack.routes/__init__.pyimported it but never used it, so the import is deleted. Nothing else we import from Flask was removed in 3.x, and flask-caching 2.4.1 and flask-cors 6.0.5 support Flask 3. TheFlask==2.3.3pin dated from 2023 (then the latest release), not from a known incompatibility.uv.lockchanges only these four packages.Testing
scripts/test_local.sh: 88 passed, 7 skipped, no warnings from the upgraded packages.main:app):/,/aboutand/postag.apireturn 200./static/fonts/glyphicons-regular.woffserves withmax-age=86400viasend_from_directory; an encoded../path returns 404.🤖 Generated with Claude Code