fix: update pytest to 9.1.1 (CVE-2025-71176 / GHSA-6w46-j5rx-g56g) - #1
Merged
Conversation
…-g56g) Co-authored-by: OpenAI Codex <noreply@openai.com> Co-authored-by: gvegayon <893619+gvegayon@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update pytest to version 9.0.3 to resolve vulnerability
fix: update pytest to 9.1.1 (CVE-2025-71176 / GHSA-6w46-j5rx-g56g)
Aug 3, 2026
gvegayon
marked this pull request as ready for review
August 4, 2026 19:08
There was a problem hiding this comment.
Pull request overview
Updates the project’s pytest dependency to a non-vulnerable release to address GHSA-6w46-j5rx-g56g / CVE-2025-71176 affecting pytest’s tmpdir handling on UNIX.
Changes:
- Updates the dev dependency constraint for
pytestto allow patched versions (>=9.0.3). - Re-locks dependencies so
uv.lockresolvespytestto 9.1.1.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| pyproject.toml | Updates the dev extra to require a patched pytest version. |
| uv.lock | Re-locks to pytest 9.1.1 and updates the recorded dependency constraint metadata. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
19
to
21
| dev = [ | ||
| "pytest>=8,<9", | ||
| "pytest>=9.0.3", | ||
| "ruff>=0.6,<1", |
Review feedback on the pytest 9.1.1 bump: every other pinned dependency in this file has an explicit major-version cap (ruff>=0.6,<1, fastapi>=0.115,<1, ...) except this one, left open-ended by the CVE fix. Capping it keeps a future pytest 10 from being pulled in silently by a routine `uv lock`. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.
pytest ≤9.0.2 uses predictable
/tmp/pytest-of-{user}directory names on UNIX, enabling local DoS or privilege escalation. Patched in 9.0.3.Changes
pyproject.toml: Relaxed constraintpytest>=8,<9→pytest>=9.0.3uv.lock: Re-locked; pytest 8.4.2 → 9.1.1Reachability
The vulnerable code path is in pytest's internal tmpdir machinery, active on every test run regardless of whether tests explicitly use
tmp_path/tmpdirfixtures. Any pytest invocation on a shared UNIX host is exposed. High confidence — fix is fully contained within pytest internals; no application code changes required.Original prompt