Repository navigation
fix(deps): require patched pytest in Python dev groups - #56
Merged
Merged
Conversation
Dependabot alerts GHSA-6w46-j5rx-g56g report pytest < 9.0.3 in sdks/python/uv.lock and benchmark/uv.lock. On UNIX pytest relies on /tmp/pytest-of-{user} directories, so a local user can cause a denial of service or possibly gain privileges. The pytest>=8,<9 dev constraint made the patched release unreachable, so raise the floor to the first fixed version and regenerate both lockfiles (pytest 8.4.2 -> 9.1.1). Verification: uv sync --locked succeeded for both projects; ruff and ty are clean; the suites pass under pytest 9.1.1 (53 passed in sdks/python, 16 passed in benchmark); uv build produced the wheel and sdist.
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 Dependabot alerts #4 and #5 (GHSA-6w46-j5rx-g56g, medium, CVSS 6.8).
pytest < 9.0.3 builds its tmp directory as /tmp/pytest-of-{user} on UNIX, which lets a local user cause a denial of service or possibly gain privileges. The pytest>=8,<9 dev constraint in sdks/python and benchmark made the patched release unreachable, so the floor is raised to the first fixed version and both lockfiles are regenerated: pytest 8.4.2 -> 9.1.1. No other locked package changed.
Verification, with pytest reporting 9.1.1:
Both Dependabot alerts should close once this lands on main.