fix: Update pytest to 9.0.3 to address CVE-2025-71176 - #29
Conversation
- Updated pytest from 7.1.1 to 9.0.3 to fix insecure temporary directory vulnerability - CVE-2025-71176: pytest through 9.0.2 on UNIX relies on predictable /tmp/pytest-of-{user} directories, allowing local users to cause denial of service or gain privileges via symlink attacks - Bumped version from 4.6.0 to 4.7.0 - Regenerated poetry.lock and Pipfile/Pipfile.lock with updated dependencies - All unit tests passing (38 tests)
There was a problem hiding this comment.
Pull request overview
Updates the project’s test tooling to remediate a pytest security issue by upgrading pytest and regenerating dependency lockfiles.
Changes:
- Bump
pytestfrom 7.1.1 to 9.0.3 in Poetry dev-dependencies. - Increment project version to 4.7.0.
- Regenerate
poetry.lock,Pipfile, andPipfile.lockto reflect the new dependency resolution.
Reviewed changes
Copilot reviewed 2 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
pyproject.toml |
Bumps project/package version and updates pytest dev dependency to 9.0.3. |
poetry.lock |
Regenerated lock with pytest 9.0.3 and updated dependency graph/metadata. |
Pipfile |
Regenerated pipenv manifest used for scanning (pinned dependency list + Python requirement). |
Pipfile.lock |
Regenerated pipenv lock including updated hashes, markers, and Python full version requirement. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| [tool.poetry] | ||
| name = "export-snowflake" | ||
| version="4.6.0" | ||
| version="4.7.0" |
There was a problem hiding this comment.
version is formatted inconsistently with the rest of this TOML file (most keys use key = "value"). Consider changing this to version = "4.7.0" to match name = ..., description = ..., etc.
| version="4.7.0" | |
| version = "4.7.0" |
| [requires] | ||
| python_version = "3.13" | ||
| python_full_version = "3.13.3" | ||
| python_full_version = "3.13.13" |
There was a problem hiding this comment.
Pinning python_full_version to an exact patch release (3.13.13) makes pipenv install brittle for anyone on a different 3.13.x patch level. Consider removing python_full_version (keeping python_version = "3.13") or loosening it to avoid unnecessary install failures.
| python_full_version = "3.13.13" |
Security Fix: CVE-2025-71176
This PR addresses a security vulnerability in pytest by updating it from version 7.1.1 to 9.0.3.
Vulnerability Details
CVE-2025-71176 - Insecure Temporary Directory Vulnerability
/tmp/pytest-of-{user}pattern, which allows local users to:Fix Details
The vulnerability was patched in pytest 9.0.3 (released April 7, 2026). The fix prevents symlink attacks by detecting and rejecting symlinks in the temporary directory path.
Changes Made
pyproject.tomlpyproject.tomlpoetry.lock- Updated with pytest 9.0.3 and all dependenciesPipfileandPipfile.lock- Regenerated from poetry.lockTesting
Notes
References