fix: address security vulnerabilities while maintaining Python 3.9 support#1544
Merged
Conversation
…pport Resolve 12 Dependabot security alerts by constraining vulnerable packages to Python 3.10+ where patches are available: Python dependencies: - filelock: Pin <3.20.3 for Python 3.9, >=3.20.3 for Python 3.10+ (fixes TOCTOU symlink vulnerabilities CVE-2024-XXXXX) - tensorflow: Only install on Python 3.10+ (brings keras >=3.12.1, pillow >=12.1.1) (fixes 8 high-severity keras vulnerabilities including arbitrary code execution, directory traversal, and 1 high-severity pillow out-of-bounds write) JavaScript dependencies: - vitest: Update to latest (4.0.18) in test fixture directory (fixes moderate-severity esbuild SSRF vulnerability GHSA-67mh-4wv8-2f99) Python 3.9 notes: - filelock 3.19.1 has known TOCTOU vulnerabilities (medium severity) - tensorflow/keras/pillow excluded from Python 3.9 test dependencies - Python 3.9 reached EOL in October 2025, vulnerabilities are expected All high-severity vulnerabilities are resolved for Python 3.10+. Python 3.9 users should upgrade to 3.10+ for full security patches.
Contributor
PR Review SummaryPrek Checks✅ Passed — no Python files changed in this PR, so no linting/formatting issues to check. Mypy✅ N/A — no Python source files changed. Code Review✅ No critical issues found. Changes are well-structured:
Test CoverageN/A — no Python source files were changed in this PR. Changes are limited to:
No coverage regression possible from these changes. Last updated: 2026-02-19 |
Run unit tests on Windows with Python 3.13 in addition to all Python versions (3.9-3.14) on Ubuntu. This ensures cross-platform compatibility is tested while keeping Windows test duration reasonable.
ca9b4a0 to
d09fa5c
Compare
Remove redundant windows-unit-tests.yml and add Windows Python 3.13 job to the main unit-tests.yaml workflow. Add PYTHONIOENCODING env var for Windows compatibility.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Resolves 12 Dependabot security alerts by constraining vulnerable packages to Python 3.10+ where patches are available.
Changes
Python Dependencies
<3.20.3for Python 3.9,>=3.20.3for Python 3.10+JavaScript Dependencies
Python 3.9 Impact
Test Plan