Skip to content

Fix/security vulnerabilities#196

Merged
ChrsBaur merged 5 commits intomasterfrom
fix/security-vulnerabilities
Jan 27, 2026
Merged

Fix/security vulnerabilities#196
ChrsBaur merged 5 commits intomasterfrom
fix/security-vulnerabilities

Conversation

@ChrsBaur
Copy link
Contributor

Security

  • BREAKING CHANGE: Upgraded minimum Python version from 3.9 to 3.10 to support secure dependency versions
  • Fixed CVE-2024-47081: Updated requests from 2.32.3 to 2.32.5 (Moderate - .netrc credentials leak)
  • Fixed CVE-2025-50181: Updated urllib3 from 2.4.0 to 2.6.3 (Moderate - redirects not disabled with retries)
  • Fixed CVE-2025-50182: Updated urllib3 to 2.6.3 (Moderate - redirects in browsers/Node.js)
  • Fixed CVE-2025-66418: Updated urllib3 to 2.6.3 (High - unbounded decompression chain)
  • Fixed CVE-2025-66471: Updated urllib3 to 2.6.3 (High - improper handling of compressed data)
  • Fixed CVE-2026-21441: Updated urllib3 to 2.6.3 (High - decompression-bomb bypass in redirects)
  • Fixed CVE-2026-24049: Updated wheel from 0.45.1 to 0.46.3 (High - path traversal in wheel unpack)
  • Fixed CVE-2025-68146: Updated filelock from 3.18.0 to 3.20.3 (Moderate - TOCTOU symlink attack)
  • Fixed CVE-2026-22701: Updated filelock to 3.20.3 (Moderate - TOCTOU in SoftFileLock)
  • Fixed CVE-2026-22702: Updated virtualenv from 20.31.2 to 20.36.1 (Moderate - TOCTOU in directory creation)

Changed

  • Updated CI/CD workflows to test Python 3.10 and 3.13 (dropped 3.9)
  • Updated all template files and documentation to reflect Python 3.10 minimum requirement

- Update requests from 2.32.3 to 2.32.5 (fixes CVE-2024-47081)
- Update urllib3 from 2.4.0 to 2.6.3 (fixes CVE-2025-50181, CVE-2025-50182, CVE-2025-66418, CVE-2025-66471, CVE-2026-21441)
- Update wheel from 0.45.1 to 0.46.3 (fixes CVE-2026-24049)
- Update filelock from 3.18.0 to 3.20.3 (fixes CVE-2025-68146, CVE-2026-22701)
- Update virtualenv from 20.31.2 to 20.36.1 (fixes CVE-2026-22702)
- Upgrade minimum Python version from 3.9 to 3.10 (required for secure dependency versions)
- Update CI/CD workflows to use Python 3.10 and 3.13
- Update all template files with new Python version requirements
All 10 Dependabot vulnerabilities have been resolved:
- 4 High severity issues fixed
- 6 Moderate severity issues fixed
YAML interprets 3.10 as float 3.1, causing CI failures.
Python versions must be quoted as strings: '3.10' instead of 3.10
Update all Python Docker images in GitLab CI pipeline to use Python 3.10
to match the new minimum Python version requirement.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses multiple security vulnerabilities by upgrading various Python dependencies and increasing the minimum Python version requirement from 3.9 to 3.10. However, there are several critical issues that need to be addressed.

Changes:

  • Upgraded minimum Python version from 3.9 to 3.10 across multiple configuration files
  • Updated security-critical dependencies: requests, urllib3, wheel, filelock, and virtualenv
  • Modified CI/CD workflows to test Python 3.10 and 3.13 instead of 3.9 and 3.13

Reviewed changes

Copilot reviewed 11 out of 12 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
{{cookiecutter.project_slug}}/setup.py Updated python_requires from >=3.9 to >=3.10
{{cookiecutter.project_slug}}/requirements-dev.txt Updated wheel version constraint to >=0.46.2
{{cookiecutter.project_slug}}/pyproject.toml Updated Python version constraint from ^3.9 to ^3.10
{{cookiecutter.project_slug}}/environment.yml Updated conda Python dependency from >=3.9 to >=3.10
{{cookiecutter.project_slug}}/environment-dev.yml Updated conda Python dependency from >=3.9 to >=3.10
pyproject.toml Updated Python version, added security dependency constraints
poetry.lock Updated locked versions for requests, urllib3, wheel, filelock, virtualenv
hooks/pre_gen_project.py Updated Python version check from 3.9.0 to 3.10.0
README.md Updated documentation to reflect Python 3.10 minimum requirement
CHANGELOG.md Added security update entries and change notes
.github/workflows/tests-poetry.yml Updated test matrix from Python 3.9 to 3.10

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

- Updated pre-commit from 4.3.0 to 4.5.1 in all template files
- Updated pyhocon from 0.3.59 to 0.3.61 in cookiecutter template
- Updated wheel from 0.46.2 to 0.46.3 in requirements-dev.txt
- Added v1.3.0 link to CHANGELOG.md
All dependency files now consistently use the latest versions:
- pyproject.toml (root & template) ✅
- requirements-dev.txt ✅
- environment-dev.yml ✅
- CHANGELOG.md ✅
@ChrsBaur ChrsBaur merged commit fa3b9a9 into master Jan 27, 2026
4 checks passed
@ChrsBaur ChrsBaur deleted the fix/security-vulnerabilities branch January 27, 2026 21:16
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.

1 participant