Skip to content

deps: pytest 9.0.3 and pytest-asyncio 1.4.0 (CVE-2025-71176) - #8

Merged
StaticHumStudio merged 1 commit into
mainfrom
deps/pytest-9-security-bump
Aug 6, 2026
Merged

deps: pytest 9.0.3 and pytest-asyncio 1.4.0 (CVE-2025-71176)#8
StaticHumStudio merged 1 commit into
mainfrom
deps/pytest-9-security-bump

Conversation

@StaticHumStudio

Copy link
Copy Markdown
Owner

Closes Dependabot alert #1.

What

pytest 8.4.1 -> 9.0.3, pytest-asyncio 1.1.0 -> 1.4.0 in requirements-dev.txt.

Why

GHSA-6w46-j5rx-g56g / CVE-2025-71176, CVSS 6.8 medium. pytest through 9.0.2 on UNIX uses predictable /tmp/pytest-of-{user} directories, which lets a local user cause a denial of service or possibly escalate privileges. First patched in 9.0.3.

The two are coupled. pytest-asyncio 1.1.0 pins pytest<9, so pytest cannot move on its own. 1.4.0 is the first release that accepts pytest 9.

Dev-only. requirements-dev.txt never ships, so this is CI and local test surface, not the installed agent.

Verification

239 passed, 5 skipped in 2.98s

Full Linux suite on Python 3.12 against the new pins, identical pass/skip counts to 8.4.1. Windows-only tests skip on Linux as usual and run in CI.

Noted, not changed

Nothing in this repo actually uses pytest-asyncio. There is no asyncio_mode config, no @pytest.mark.asyncio, no async def test_, and no import of it anywhere. Every async path in tests/test_request_limits.py and tests/test_peer_discovery_security.py goes through asyncio.run() inside a sync test. It looks like a leftover from the API auth/TLS work. Dropping it outright would remove a dependency and the version coupling that made this alert a two-package change, but that is a separate call from taking the security fix.

🤖 Generated with Claude Code

…ith it

CVE-2025-71176 (GHSA-6w46-j5rx-g56g, CVSS 6.8): pytest through 9.0.2 on UNIX
uses predictable /tmp/pytest-of-{user} directories, so a local user can cause
a denial of service or possibly escalate. Fixed in 9.0.3.

pytest-asyncio 1.1.0 pins pytest<9, so the two move together or neither does.
1.4.0 is the first release that accepts pytest 9.

239 passed, 5 skipped on Linux under the new pins, unchanged from 8.4.1.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@StaticHumStudio
StaticHumStudio merged commit 8bfc6fa into main Aug 6, 2026
14 checks passed
@StaticHumStudio
StaticHumStudio deleted the deps/pytest-9-security-bump branch August 6, 2026 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant