Skip to content

Commit caf66f0

Browse files
authored
chore: Update PyJWT and other vulnerabilities (M2-10532) (#2032)
🔗 [Jira Ticket M2-10532](https://mindlogger.atlassian.net/browse/M2-10532) Audit dependencies: make audit Update direct dependencies: uv add "aiohttp>=3.13.4" uv add "cryptography>=46.0.6" uv add "pyjwt>=2.12.0" Update indirect dependencies: uv sync --upgrade-package pyasn1 uv sync --upgrade-package pygments uv sync --upgrade-package requests Clean up pinned Python version: - Update .python-version 3.13.1 (patch version) → 3.13 (minor version) - Update Dockerfile to use .python-version Before: Vulnerabilities detected! Checked: 184 dependencies Vulnerable: 15 vulnerabilities (8 low, 5 medium, 2 high) ┏━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓ ┃ Package ┃ Version ┃ Vulnerability ID ┃ Severity ┃ Fix Versions ┃ Aliases ┃ ┡━━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩ │ aiohttp │ 3.13.3 │ GHSA-p998-jp59-783m │ MEDIUM │ 3.13.4 │ CVE-2026-34515 │ │ aiohttp │ 3.13.3 │ GHSA-hcc4-c3v8-rx92 │ LOW │ 3.13.4 │ CVE-2026-34513 │ │ aiohttp │ 3.13.3 │ GHSA-m5qp-6w8w-w647 │ MEDIUM │ 3.13.4 │ CVE-2026-34516 │ │ aiohttp │ 3.13.3 │ GHSA-3wq7-rqq7-wx6j │ LOW │ 3.13.4 │ CVE-2026-34517 │ │ aiohttp │ 3.13.3 │ GHSA-mwh4-6h8g-pg8w │ LOW │ 3.13.4 │ CVE-2026-34519 │ │ aiohttp │ 3.13.3 │ GHSA-966j-vmvw-g2g9 │ LOW │ 3.13.4 │ CVE-2026-34518 │ │ aiohttp │ 3.13.3 │ GHSA-63hf-3vf5-4wqf │ LOW │ 3.13.4 │ CVE-2026-34520 │ │ aiohttp │ 3.13.3 │ GHSA-c427-h43c-vf67 │ MEDIUM │ 3.13.4 │ CVE-2026-34525 │ │ aiohttp │ 3.13.3 │ GHSA-w2fm-2cpv-w7v5 │ MEDIUM │ 3.13.4 │ CVE-2026-22815 │ │ aiohttp │ 3.13.3 │ GHSA-2vrm-gr82-f7m5 │ LOW │ 3.13.4 │ CVE-2026-34514 │ │ cryptography │ 46.0.5 │ GHSA-m959-cc7f-wv43 │ LOW │ 46.0.6 │ CVE-2026-34073 │ │ pyasn1 │ 0.6.2 │ GHSA-jr27-m4p2-rc6r │ HIGH │ 0.6.3 │ CVE-2026-30922 │ │ Pygments │ 2.19.2 │ GHSA-5239-wwwm-4pmq │ LOW │ 2.20.0 │ CVE-2026-4539 │ │ PyJWT │ 2.10.1 │ GHSA-752w-5fwx-jx9f │ HIGH │ 2.12.0 │ CVE-2026-32597 │ │ requests │ 2.32.4 │ GHSA-gc5v-m9x4-r6x2 │ MEDIUM │ 2.33.0 │ CVE-2026-25645 │ └──────────────┴─────────┴─────────────────────┴──────────┴──────────────┴────────────────┘ After: No vulnerabilities or maintenance issues detected! Checked: 184 dependencies All dependencies appear safe!
1 parent abf8087 commit caf66f0

4 files changed

Lines changed: 73 additions & 70 deletions

File tree

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.13.1
1+
3.13

compose/fastapi/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,14 @@ ENV UV_PYTHON_INSTALL_DIR=/python
1111
ENV UV_PYTHON_PREFERENCE=only-managed
1212

1313
# Install Python before the project for caching
14-
RUN uv python install 3.13
14+
RUN --mount=type=cache,target=/root/.cache/uv \
15+
--mount=type=bind,source=.python-version,target=.python-version \
16+
uv python install
1517

1618
WORKDIR /app
1719

1820
RUN --mount=type=cache,target=/root/.cache/uv \
21+
--mount=type=bind,source=.python-version,target=.python-version \
1922
--mount=type=bind,source=uv.lock,target=uv.lock \
2023
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
2124
uv sync --locked --no-install-project --no-dev

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ dependencies = [
99
# Run `uv sync --upgrade-package foo` to upgrade indirect dependencies
1010
"aio-pika==9.5.*",
1111
"aiofiles~=24.1.0",
12-
"aiohttp>=3.13.3",
12+
"aiohttp>=3.13.4",
1313
"alembic~=1.16.1",
1414
"asgi-correlation-id~=4.3.4",
1515
"asyncpg~=0.30.0",
1616
"azure-storage-blob==12.25.*",
1717
"bcrypt~=4.3.0",
1818
"boto3~=1.40.60",
19-
"cryptography>=46.0.5",
19+
"cryptography>=46.0.6",
2020
"ddtrace~=3.17.1",
2121
"fastapi==0.124.*",
2222
"fastapi-mail>=1.5.3",
@@ -25,7 +25,7 @@ dependencies = [
2525
"jinja2==3.1.*",
2626
"nh3==0.3.*",
2727
"pydantic[email]>=2.0",
28-
"pyjwt==2.10.1",
28+
"pyjwt>=2.12.0",
2929
"pymongo==4.13.0",
3030
"pyotp~=2.9.0",
3131
"python-multipart>=0.0.22",

0 commit comments

Comments
 (0)