fix(deps): Python-compatible CVE bumps for pyyaml and pytest (supersedes #48, #49) - #50
Merged
Merged
Conversation
This was referenced Jun 10, 2026
Dependabot PRs #48 and #49 bumped to versions that break this project's Python-version floors: - #49 (pyyaml -> 5.4) fails to build on Python 3.10 (no cp310 wheel, sdist Cython error) and only addressed CVE-2020-14343, which targets unsafe yaml.load(); this repo only uses yaml.safe_load. Bump to pyyaml ^6.0.1 instead (has cp310 wheels, fixes the CVE, supports the ^3.7 floor). - #48 (pytest -> 9.0.3) requires Python >=3.10, but the pyspark template targets Python 3.7 (EMR 6.x / amazonlinux:2). Pin pytest==7.4.4, the last line supporting 3.7. poetry.lock regenerated with Poetry 1.5.1 (lock-version 2.0 preserved). Verified: pytest --cov emr_cli tests/ passes on Python 3.9 and 3.10.
mitczach
force-pushed
the
fix/cve-bumps-py-compat
branch
from
June 23, 2026 17:41
9382ab4 to
0925c1e
Compare
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
Supersedes Dependabot PRs #48 and #49, which bumped to versions that break this project's Python-version floors. This PR applies CVE-addressing bumps that respect those floors instead.
Background
cp310wheel → sdist Cython error'build_ext' object has no attribute 'cython_sources'). Re-run of #29, closed in 2023 for the same reason. Also rewrotepoetry.lockto Poetry 2.x format. CVE-2020-14343 targets unsafeyaml.load(); this repo only usesyaml.safe_load.^6.0.1— hascp310wheels, supports the^3.7floor, addresses the alert.amazonlinux:2). Makes the scaffolded[tests]extra uninstallable.==7.4.4— last line supporting Python 3.7.Changes
pyproject.toml:pyyaml = "5.3.1"→"^6.0.1"poetry.lock: regenerated with Poetry 1.5.1 (poetry lock --no-update); only pyyaml changed (5.3.1 → 6.0.1), lock-version 2.0 format preserved to match the pinned toolchainsrc/emr_cli/templates/pyspark/pyproject.toml:pytest==7.1.2→7.4.4Verification
pytest --cov emr_cli tests/→ 17 passed on Python 3.9 and 3.10 (matching CI)5.4/5.4.1fail to build on 3.10,6.0.1installs; pytest9.0.3is unsatisfiable below 3.10,7.4.4declaresRequires-Python >=3.7Closes #48
Closes #49