Skip to content

Bump pytest to fix Dependabot alert #19 - #104

Open
pauldhawk wants to merge 1 commit into
mainfrom
fix/pytest-dependabot-alert
Open

pauldhawk wants to merge 1 commit into
mainfrom
fix/pytest-dependabot-alert

Conversation

@pauldhawk

Copy link
Copy Markdown
Contributor

Summary

  • Dependabot alert Update README.rst #19 flags pytest <9.0.3 for vulnerable /tmp/pytest-of-{user} directory handling (GHSA-24qm-fmxv-6h9p): a local DoS/privilege-escalation risk on shared Unix systems.
  • Bumps the dev dependency group to pytest>=9.0.3 for Python 3.10+.
  • pytest 9.x requires Python 3.10+, and this repo still tests down to 3.8, so the constraint is split by python_version marker to keep older interpreters on a pytest version that still supports them.

Note: this is a dev-only dependency (test runner), not something shipped to us package consumers, and the practical risk on ephemeral single-tenant CI runners is minimal — but it's a one-line fix so no reason to leave the alert open.

Test plan

  • uv sync resolves cleanly across the python-version matrix
  • uv run pytest . — 40 passed, 1 skipped (pytest 9.0.3 on 3.14)
  • uv run ruff check . / uv run ty check us — clean

🤖 Generated with Claude Code

Pytest <9.0.3 relies on predictable /tmp/pytest-of-{user} directory
names, which upstream advisory GHSA-24qm-fmxv-6h9p flags as a local
DoS/privilege risk on shared Unix systems. pytest>=9.0.3 requires
Python 3.10+, so the constraint is split by python_version to keep
3.8/3.9 support in the dev dependency group.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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