From c0a3e43e9ba48a2142eca0a667ac8ec67d3cf785 Mon Sep 17 00:00:00 2001 From: PPeitsch Date: Thu, 8 Oct 2026 04:58:30 -0300 Subject: [PATCH] chore(deps): bump dependencies with known vulnerabilities Flask 3.1.3, Werkzeug 3.1.9, requests 2.34.2, python-dotenv 1.2.4 and pdfplumber 0.11.10 (pdfminer.six 20260107). Pillow, cryptography, urllib3, idna, soupsieve and Mako pinned to fixed versions as transitive dependencies. --- CHANGELOG.md | 3 +++ requirements.txt | 20 +++++++++++++++----- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a21f471..8935b37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Security +- Dependencies with known vulnerabilities: Flask 3.1.3, Werkzeug 3.1.9, requests 2.34.2, python-dotenv 1.2.4 and pdfplumber 0.11.10 (pdfminer.six 20260107, which no longer loads pickled CMaps from a crafted PDF). Pillow, cryptography, urllib3, idna, soupsieve and Mako are pinned to fixed versions although the app does not import them. + ### Added - `/health` for a monitor: public, answers `ok` and the running commit, or 503 when the database does not answer. - `/ops/metrics`: counts for a monitor (days logged in the last week, worked and absences, days logged in total, users), with `Authorization: Bearer `. Without `OPS_METRICS_TOKEN` it answers 404. Never hours, dates or notes. diff --git a/requirements.txt b/requirements.txt index 6b80a0d..11bfc16 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,16 +1,26 @@ -Flask==3.1.0 -Werkzeug==3.1.3 +Flask==3.1.3 +Werkzeug==3.1.9 Flask-SQLAlchemy==3.1.1 Flask-Migrate==4.1.0 Flask-Login==0.6.3 Flask-WTF==1.2.2 Flask-Babel==4.0.0 SQLAlchemy==2.0.37 -requests==2.32.3 +requests==2.34.2 psycopg2-binary==2.9.10 -python-dotenv==1.0.1 +python-dotenv==1.2.4 beautifulsoup4==4.13.4 -pdfplumber==0.11.0 +pdfplumber==0.11.10 openpyxl==3.1.2 gunicorn==23.0.0 + +# Not imported by the app, pinned for their security fixes: Pillow and cryptography come with +# pdfplumber (pdfminer.six), urllib3 and idna with requests, soupsieve with beautifulsoup4, +# Mako with Flask-Migrate (alembic). +Pillow==12.3.0 +cryptography==50.0.2 +urllib3==2.8.0 +idna==3.20 +soupsieve==2.10 +Mako==1.3.12