Skip to content

Bump vulnerable dependencies (Python 3.8-compatible fixes)#402

Merged
spicy-sauce merged 1 commit into
mainfrom
security/dependency-bumps-py38
Jun 3, 2026
Merged

Bump vulnerable dependencies (Python 3.8-compatible fixes)#402
spicy-sauce merged 1 commit into
mainfrom
security/dependency-bumps-py38

Conversation

@spicy-sauce

@spicy-sauce spicy-sauce commented Jun 3, 2026

Copy link
Copy Markdown
Member

Summary

Re-locks core/ and cli/ to the latest dependency versions installable on the project's Python ^3.8 floor, clearing 27 of 66 open Dependabot alerts.

High Medium Low Total
Before 15 35 16 66
Resolved here 3 21 3 27
Remaining (blocked by Python 3.8) 12 14 13 39

Key version bumps

Package Before After Manifest
aiohttp 3.8.6 3.10.11 core
urllib3 2.0.7 / 1.26.13 2.2.3 core / cli
requests 2.31.0 / 2.28.1 2.32.4 core / cli
jinja2 3.1.4 3.1.6 core
idna 3.10 / 3.4 3.15 core / cli
zipp 3.15.0 / 3.11.0 3.20.2 core / cli
certifi 2023.x 2026.5.20 core / cli

pyproject.toml change (minimal)

  • certifi: ^2023.7.22>=2024.7.4 in both packages — the old caret excluded the patched 2024.7.4 release, so the alert couldn't clear without widening it.

All other version changes are lockfile-only (poetry lock picking newer Python 3.8-compatible releases); no other constraints were touched.

Remaining 39 alerts — all gated on the Python 3.8 floor

Every remaining alert requires a release that dropped Python 3.8 support, so it cannot be applied without raising the floor to ^3.9+:

  • aiohttp → needs ≥3.12 (18 alerts)
  • urllib3 → needs ≥2.5 (10 alerts)
  • cryptography → needs ≥44 (2)
  • pytest → needs ≥9.0.3 (3, test-only)
  • requests → needs ≥2.33.0 (2)
  • orjson ≥3.11.6 (1), azure-core ≥1.38.0 (1)

The Python floor must stay at 3.8 (a customer runs the package on it), so these are not actionable here.

Verification

All 187 core unit tests pass with the upgraded dependencies (PYTHONPATH=src python -m pytest). The CLI package has no unit tests; CI only exercises core.

🤖 Generated with Claude Code

@spicy-sauce spicy-sauce self-assigned this Jun 3, 2026
@spicy-sauce spicy-sauce force-pushed the security/dependency-bumps-py38 branch from 8977a19 to 55b4bf3 Compare June 3, 2026 06:48
@spicy-sauce spicy-sauce requested a review from Copilot June 3, 2026 06:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request updates the core/ and cli/ Poetry dependency constraints and lockfiles to newer Python 3.8-compatible versions in order to reduce known vulnerable dependency alerts while keeping the project’s stated Python ^3.8 floor.

Changes:

  • Widen certifi constraints in both core and cli to allow patched releases to resolve.
  • Add a Python-3.8 compatibility cap for hypothesis in core.
  • Refresh Poetry lockfiles to pick up newer dependency versions (e.g., requests, urllib3, jsonschema, idna, zipp, etc.).

Reviewed changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated 1 comment.

File Description
core/pyproject.toml Widens certifi constraint and caps hypothesis to keep Python 3.8 compatibility.
core/poetry.lock Re-locks core dependencies to newer Python 3.8-compatible versions.
cli/pyproject.toml Widens certifi constraint to allow patched releases.
cli/poetry.lock Re-locks CLI dependencies to newer Python 3.8-compatible versions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread core/pyproject.toml Outdated
Resolves 27 of 66 open Dependabot alerts by re-locking core/ and cli/ to
the latest dependency versions installable on the project's Python ^3.8
floor.

Key bumps:
- aiohttp 3.8.6 -> 3.10.11 (core)
- urllib3 2.0.7 -> 2.2.3 (core), 1.26.13 -> 2.2.3 (cli)
- requests -> 2.32.4, jinja2 3.1.4 -> 3.1.6, idna -> 3.15, zipp -> 3.20.2
- certifi -> 2026.5.20 (widened constraint to >=2024.7.4; the old
  ^2023.7.22 caret excluded the patched release)

The remaining 39 alerts all require dependency releases that dropped
Python 3.8 support (aiohttp >=3.12, urllib3 >=2.5, cryptography >=44,
orjson >=3.11, azure-core >=1.38, pytest >=9, requests >=2.33) and cannot
be applied without raising the Python floor.

All 187 core unit tests pass with the upgraded dependencies.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@spicy-sauce spicy-sauce force-pushed the security/dependency-bumps-py38 branch from 55b4bf3 to f51563f Compare June 3, 2026 07:02
@spicy-sauce spicy-sauce merged commit 06aa288 into main Jun 3, 2026
5 checks passed
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