Skip to content

Security: upgrade Python deps and align DB migrations (Dependabot fixes)#677

Closed
Raphux wants to merge 1 commit intomasterfrom
vuln-correction-2026-01
Closed

Security: upgrade Python deps and align DB migrations (Dependabot fixes)#677
Raphux wants to merge 1 commit intomasterfrom
vuln-correction-2026-01

Conversation

@Raphux
Copy link
Copy Markdown
Contributor

@Raphux Raphux commented Jan 21, 2026

Updates Python dependencies to latest stable compatible versions to address multiple Dependabot alerts and keep the stack coherent with Flask 3.x:

Switches db initialization from sqlalchemy-migrate to Alembic/Flask-Migrate:

  • db_create.py now creates tables and stamps head in app context
  • env.py avoids duplicate compare_type argument with new Flask-Migrate
  • update-passhport.sh no longer installs sqlalchemy-migrate

Fixes user deletion for names containing '@' by decoding the route param before DB lookup.

Note: Bootbox XSS alert #22 is not addressed in this commit.

Refs: #31 #38 #39 #49 #53 #21 #657 #9 #44 #41 #42 #50 #51 #52 #46 #45
#54 #55 #30 #642 #29 #644 #36 #652 #43 #48

Bump Python dependencies to latest stable compatible versions to address
Mend/WhiteSource security issues and keep the stack coherent with Flask 3.x:
  - Werkzeug 3.1.5 (fixes #673, #671, #663, #662, #640, #630)
  - Flask 3.1.2 (fixes #606)
  - Jinja2 3.1.6 (fixes #675, #674, #672)
  - urllib3 2.6.3 (fixes #669, #665, #664)
  - requests 2.32.5 (fixes #667)
  - setuptools 80.9.0 (fixes #670, #668)
  - sqlparse 0.5.5 (fixes #654)
  - idna 3.11 (fixes #655)
  - zipp 3.23.0 (fixes #663)
  - certifi 2026.1.4 (fixes #656)
  - alembic 1.15.2 to satisfy Flask-Migrate 4.1.0
  - Flask-SQLAlchemy 3.1.1, Flask-Migrate 4.1.0
  - remove python-ecdsa (fixes #626)

Switch db initialization from sqlalchemy-migrate to Alembic/Flask-Migrate:
  - db_create.py creates tables and stamps head in app context
  - env.py avoids duplicate compare_type argument with new Flask-Migrate
  - update-passhport.sh no longer installs sqlalchemy-migrate

Fix user deletion for names containing '@' by decoding route param
before DB lookup.

Note: Bootbox XSS issue (#615) is not addressed in this commit.
@Raphux Raphux force-pushed the vuln-correction-2026-01 branch from 970bdc8 to 4f62d1a Compare January 21, 2026 10:24
@Raphux Raphux closed this Jan 21, 2026
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