ROB-566 Fix CVE-2025-71176 by upgrading pytest and related dependencies#537
Merged
Merged
Conversation
Bump pytest ^7.2.2 -> ^9.0.3 (CVE-2025-71176, medium severity, fixed in 9.0.3; locked at 9.1.1). This required pytest-asyncio ^1.3 (older versions cap pytest below 9) which in turn needs typing-extensions >=4.12, so the stale typing-extensions 4.6.0 pin is relaxed to >=4.12,<5. requirements.txt updated to match. All 55 tests pass. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TjjSMyvjymxtXMYFQ1NKbu
Keep the lock-version 2.0 format instead of 2.1 to minimize the diff and stay readable by older Poetry versions. Resolved versions are unchanged (pytest 9.1.1, pytest-asyncio 1.4.0, typing-extensions 4.16.0). All 55 tests still pass. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TjjSMyvjymxtXMYFQ1NKbu
WalkthroughDependency version constraints were updated across pyproject.toml and requirements.txt: typing-extensions, pytest, and pytest-asyncio were bumped to newer versions to address CVE-related issues, with inline comments documenting the rationale. ChangesDependency Updates
Estimated code review effort: 1 (Trivial) | ~3 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Avi-Robusta
approved these changes
Jul 9, 2026
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
This PR addresses CVE-2025-71176 by upgrading pytest to version 9.0.3 or later and updating related dependencies to compatible versions.
Key Changes
^7.2.2to^9.0.3to fix the CVE vulnerability>=0.21,<0.24to^1.3for compatibility with pytest 9.x4.6.0to>=4.12.0,<5to satisfy pytest-asyncio >=1.3 requirementsNotable Details
https://claude.ai/code/session_01TjjSMyvjymxtXMYFQ1NKbu