Bump pytest to 9.0.3 to fix CVE-2025-71176#45
Merged
sanjaychelliah merged 2 commits intomainfrom May 5, 2026
Merged
Conversation
Agent-Logs-Url: https://github.com/Clarifai/clarifai-python-datautils/sessions/004d53de-f7e7-42f1-9510-902e03582a7f Co-authored-by: sanjaychelliah <65780631+sanjaychelliah@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix pytest vulnerability in tmpdir handling
Bump pytest to 9.0.3 to fix CVE-2025-71176
May 5, 2026
sanjaychelliah
approved these changes
May 5, 2026
There was a problem hiding this comment.
Pull request overview
Updates the test dependency on pytest to a patched release that addresses CVE-2025-71176 / GHSA-6w46-j5rx-g56g, reducing exposure on shared UNIX CI runners where pytest’s temp directory handling is exercised on every run.
Changes:
- Bump
pytestfrom7.4.1to9.0.3in the test requirements.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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 users to cause DoS or privilege escalation (GHSA-6w46-j5rx-g56g / CVE-2025-71176). Fixed in 9.0.3.Changes
tests/requirements.txt:pytest==7.4.1→pytest==9.0.3(patched version);pytest-xdist==2.5.0retained, confirmed compatible.Reachability
No test in this repo explicitly uses the
tmpdir/tmp_pathfixtures, but pytest creates its tmpdir tree on every invocation — exposure exists on any shared UNIX CI runner. Update addresses active risk in CI rather than just satisfying scanners.Original prompt