bump pytest to 9.0.3 (CVE-2025-71176 / GHSA-6w46-j5rx-g56g) - #16281
Merged
Conversation
Co-authored-by: JennyPng <63012604+JennyPng@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix pytest vulnerability in tmpdir handling
bump pytest to 9.0.3 (CVE-2025-71176 / GHSA-6w46-j5rx-g56g)
Jul 6, 2026
jenny (JennyPng)
marked this pull request as ready for review
July 6, 2026 22:18
jenny (JennyPng)
requested a review
from Libba Lawrence (l0lawrence)
as a code owner
July 6, 2026 22:18
Contributor
There was a problem hiding this comment.
Pull request overview
This PR addresses a Dependabot security alert by updating the dev/test dependency pytest in the azure-pylint-guidelines-checker tool to a patched version, reducing exposure when running tests on shared UNIX hosts.
Changes:
- Bumped
pytestfrom7.1.1to9.0.3in the tool’sdev_requirements.txtto remediate GHSA-6w46-j5rx-g56g / CVE-2025-71176.
jenny (JennyPng)
approved these changes
Jul 6, 2026
Libba Lawrence (l0lawrence)
approved these changes
Jul 7, 2026
jenny (JennyPng)
enabled auto-merge (squash)
July 7, 2026 15:47
Member
|
/check-enforcer override |
ReilleyMilne (ReilleyMilne)
pushed a commit
that referenced
this pull request
Jul 8, 2026
* Initial plan * chore: update pytest to 9.0.3 to fix GHSA-6w46-j5rx-g56g vulnerability Co-authored-by: JennyPng <63012604+JennyPng@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: JennyPng <63012604+JennyPng@users.noreply.github.com>
ReilleyMilne (ReilleyMilne)
pushed a commit
that referenced
this pull request
Jul 13, 2026
* Initial plan * chore: update pytest to 9.0.3 to fix GHSA-6w46-j5rx-g56g vulnerability Co-authored-by: JennyPng <63012604+JennyPng@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: JennyPng <63012604+JennyPng@users.noreply.github.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.
Resolves a moderate-severity vulnerability in pytest ≤9.0.2 where predictable
/tmp/pytest-of-{user}directory names on UNIX allow local privilege escalation or DoS.Changes
tools/pylint-extensions/azure-pylint-guidelines-checker/dev_requirements.txt: bumppytest==7.1.1→pytest==9.0.3(minimum patched version)Reachability
The vulnerable code path is pytest-internal (tmpdir fixture creation), not application logic. Exposure is limited to test execution on shared UNIX hosts. This is a low-active-risk update but required to clear the scanner alert.
Original prompt