Skip to content

fix: bump vulnerable deps (requests, pytest, Pygments) and drop EOL Python 3.9#405

Open
nthmost-orkes wants to merge 1 commit intomainfrom
fix/security-vuln-requests-pytest-pygments
Open

fix: bump vulnerable deps (requests, pytest, Pygments) and drop EOL Python 3.9#405
nthmost-orkes wants to merge 1 commit intomainfrom
fix/security-vuln-requests-pytest-pygments

Conversation

@nthmost-orkes
Copy link
Copy Markdown
Contributor

@nthmost-orkes nthmost-orkes commented Apr 23, 2026

Summary

  • requests bumped to >=2.33.0 — fixes insecure temp file reuse in extract_zipped_paths() (GHSA-9wx4-h78v-vm56)
  • pytest bumped to ^9.0.3 — fixes vulnerable tmpdir handling (GHSA-ymfq-2fqq-2gfj)
  • pygments explicit >=2.20.0 dev constraint — fixes ReDoS via GUID regex (GHSA-mrwq-x4v8-fh7p)
  • python minimum bumped from 3.93.10 — formalizes what has been true since February 27, 2026 (see below)
  • ruff target-version updated from py39py310 to match

Companion to #382 which covers urllib3, filelock, and virtualenv.

Vulnerabilities Fixed

Package Was Now Alert
requests 2.32.4 2.33.1 #8
pytest 8.4.1 9.0.3 #10
Pygments 2.19.2 2.20.0 #9

When did 3.9 actually stop working?

February 27, 2026 — commit c09ea520 ("Bump vulnerable dependencies") added filelock>=3.20.3 and virtualenv>=20.36.1 as dev deps. filelock>=3.20.3 requires Python >=3.10, so the dev environment (and therefore poetry lock) has been incompatible with 3.9 since that date. This PR just makes the stated python constraint match reality.

Test plan

  • poetry run pytest tests/unit/ -q — 697 passed, 5 skipped, 0 failures

User impact

Python 3.9 users will need to upgrade to 3.10+ to use this SDK version. Since 3.9 is past end-of-life and the project has been effectively 3.10+ since February 27, 2026, this brings the stated requirement in line with what we actually support.

@nthmost-orkes nthmost-orkes added security Security-related issues vulnerability Dependency vulnerability labels Apr 23, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
see 57 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

- requests >= 2.33.0 (was >=2.31.0) — fixes insecure temp file reuse (GHSA)
- pytest ^9.0.3 (was ^8.4.1) — fixes vulnerable tmpdir handling (GHSA)
- pygments >= 2.20.0 (dev dep) — fixes ReDoS via GUID regex (GHSA)
- python >= 3.10 (was >=3.9) — 3.9 reached EOL Oct 2025; CI already tests 3.12 only
- ruff target-version updated from py39 → py310 to match
@nthmost-orkes nthmost-orkes force-pushed the fix/security-vuln-requests-pytest-pygments branch from f144e50 to f226650 Compare April 23, 2026 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

security Security-related issues vulnerability Dependency vulnerability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant