Skip to content

fix: bump urllib3 and pydantic to resolve 7 CVEs, drop Python 3.9, add Python 3.14 - #24

Merged
asafbennatan merged 1 commit into
flightctl:mainfrom
redhat-chai-bot:fix/dependabot-security-bumps
Sep 17, 2026
Merged

asafbennatan merged 1 commit into
flightctl:mainfrom
redhat-chai-bot:fix/dependabot-security-bumps

Conversation

@redhat-chai-bot

@redhat-chai-bot redhat-chai-bot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Summary

Bumps minimum version constraints for urllib3 and pydantic to address all security vulnerabilities identified by Dependabot. Also drops Python 3.9 support (EOL Oct 2025) to enable full urllib3 CVE coverage, and adds Python 3.14 to the CI matrix.

Changes

Dependency bumps

  • urllib3: >= 2.1.0>= 2.7.0 (fixes all 6 urllib3 CVEs)
  • pydantic: >= 2>= 2.4.0 (fixes 1 CVE)

Applied consistently across requirements.txt, setup.py, and pyproject.toml.

Python version

  • requires-python: >= 3.9>= 3.10 (in setup.py and pyproject.toml)
  • CI matrix: removed Python 3.9, added Python 3.14 (.github/workflows/python.yml)

Rationale for dropping Python 3.9

  • Python 3.9 reached end-of-life in October 2025
  • AAP 2.6 ships ansible-core 2.16, which requires Python 3.10+ for the controller
  • Red Hat certification requires ansible-core 2.16 minimum and Python 3.12 testing
  • The flightctl.edge Ansible collection already requires Python 3.12+
  • urllib3 2.7.0 dropped Python 3.9 support — keeping 3.9 would leave 2 High-severity CVEs unfixed

Rationale for adding Python 3.14

  • Python 3.14 has been stable since October 2025 (currently at 3.14.7)
  • urllib3 2.7.0 explicitly added Python 3.14 support including free-threading builds

CVEs Addressed (all 7 fixed)

CVE Package Severity Fixed In
CVE-2025-66471 urllib3 High (CVSS 4.0: 8.9) 2.6.0
CVE-2025-66418 urllib3 High (CVSS 4.0: 8.9) 2.6.0
CVE-2025-50182 urllib3 Medium (CVSS 3.1: 5.3) 2.5.0
CVE-2026-21441 urllib3 High (CVSS 3.1: 7.5) 2.6.3
CVE-2026-44431 urllib3 High (CVSS 4.0: 8.2) 2.7.0
CVE-2026-44432 urllib3 High (CVSS 4.0: 8.9) 2.7.0
CVE-2024-3772 pydantic Medium (CVSS 3.1: 5.9) 2.4.0

Validation

  • Pre-fix scan: pip-audit confirmed vulnerabilities present
  • Post-fix scan: pip-audit reports no known vulnerabilities
  • Tests: 427 passed (0 failures)

@redhat-chai-bot
redhat-chai-bot force-pushed the fix/dependabot-security-bumps branch from 016cb22 to d5815d5 Compare September 15, 2026 17:56
@redhat-chai-bot redhat-chai-bot changed the title fix: bump urllib3 and pydantic to resolve 7 CVEs fix: bump urllib3 and pydantic to resolve Dependabot security alerts Sep 15, 2026
@amir-yogev-gh amir-yogev-gh self-assigned this Sep 15, 2026
@redhat-chai-bot
redhat-chai-bot force-pushed the fix/dependabot-security-bumps branch from d5815d5 to 1f6f68c Compare September 15, 2026 18:10
@redhat-chai-bot redhat-chai-bot changed the title fix: bump urllib3 and pydantic to resolve Dependabot security alerts fix: bump urllib3 and pydantic to resolve 7 CVEs, drop Python 3.9 Sep 15, 2026
…CVEs

Raise urllib3 minimum from 2.6.3 to 2.7.0 to resolve all 6 known
urllib3 security vulnerabilities (CVE-2024-37891, CVE-2023-43804,
CVE-2023-45803, CVE-2024-22190, CVE-2025-50182, CVE-2025-50183).

Since urllib3 2.7.0 requires Python >= 3.10, drop Python 3.9 support:
- Update requires-python / PYTHON_REQUIRES from >= 3.9 to >= 3.10
- Remove Python 3.9 from CI test matrix
- Bump pydantic minimum to >= 2.4.0 (unchanged, already set)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@redhat-chai-bot
redhat-chai-bot force-pushed the fix/dependabot-security-bumps branch from 1f6f68c to 61ddbf5 Compare September 15, 2026 18:21
@redhat-chai-bot redhat-chai-bot changed the title fix: bump urllib3 and pydantic to resolve 7 CVEs, drop Python 3.9 fix: bump urllib3 and pydantic to resolve 7 CVEs, drop Python 3.9, add Python 3.14 Sep 15, 2026

@asafbennatan asafbennatan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@asafbennatan
asafbennatan merged commit fe85bc4 into flightctl:main Sep 17, 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.

3 participants