Security Fix: Upgrade pytest to 9.0.3 to address CVE-2025-71176 - #24
Merged
Merged
Conversation
- Updated pytest to version 9.0.3 to address CVE-2025-71176 - CVE-2025-71176: Insecure temporary directory vulnerability in pytest - The vulnerability allowed local users to cause DoS or gain privileges - Fixed by upgrading to pytest 9.0.3 which includes symlink attack prevention - Updated poetry.lock and Pipfile.lock with new dependencies - Bumped repository version from 3.1.0 to 3.2.0 - Verified compatibility by installing dependencies and collecting tests
ChrisLing1
approved these changes
Apr 20, 2026
There was a problem hiding this comment.
Pull request overview
This PR upgrades the project’s test framework dependency (pytest) to address CVE-2025-71176, and updates the repo’s dependency lockfiles accordingly.
Changes:
- Bump project version from
3.1.0to3.2.0and upgradepytestto^9.0.3inpyproject.toml. - Regenerate
poetry.lockto resolvepytest 9.0.3(and update the lock format/tooling metadata). - Update
Pipfile.lockmetadata content (hashes/order), ostensibly as part of lock regeneration.
Reviewed changes
Copilot reviewed 1 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| pyproject.toml | Updates package version and bumps pytest dev dependency. |
| poetry.lock | Regenerated lockfile reflecting pytest 9.0.3 and updated Poetry lock metadata/format. |
| Pipfile.lock | Updates lock hash/hashes order, but does not appear to include pytest. |
💡 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.
Summary
This PR addresses a security vulnerability (CVE-2025-71176) by upgrading pytest from version 6.2.5 to 9.0.3.
Vulnerability Details
Changes Made
^6.2.5to^9.0.3inpyproject.tomlpoetry.lockandPipfile.lockwith the new pytest version3.1.0to3.2.0Security Fix Details
The pytest 9.0.3 release includes a fix for CVE-2025-71176 that:
/tmp/pytest-of-{user}directory namingtempfile.mkdtempfor secure random directory creationTesting
pytest 9.0.3Compatibility
All existing dependencies remain compatible with the pytest upgrade. The codebase continues to work with Python 3.13 as specified in the project requirements.
References