Repository navigation
fix(deps): Bump anyio to 4.14.2 for GHSA-82r6-8w77-94w6 - #125184
Merged
Merged
Conversation
anyio < 4.14.2 has two advisories: - GHSA-82r6-8w77-94w6 (critical): TLSStream / connect_tcp() encode internationalized host names with IDNA 2003, so a hijacked connection to a non-ASCII domain can present a certificate for the IDNA 2003 form of the name and pass validation. - GHSA-5p39-cfhj-2xmp (medium): process-pool workers can block indefinitely on undrained stderr. anyio is only a transitive dependency of watchfiles here; sentry does not call it directly. The upgrade was blocked by openai==1.3.5 pinning anyio<4 until that dependency was removed in #125177. sniffio stays in the lock via other dependents. Co-Authored-By: Claude <[email protected]>
oioki
marked this pull request as ready for review
September 22, 2026 11:27
untitaker
approved these changes
Sep 22, 2026
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.
Bump
anyio3.7.1 → 4.14.2 inuv.lock, closing Dependabot alerts #721 and #720.TLSStream.wrap()andconnect_tcp()encode internationalized host names with IDNA 2003. An attacker who can redirect a connection to a non-ASCII domain can obtain a legitimate certificate for the IDNA 2003 encoding of that name and have it validate on the client.This bump was blocked until now:
openai==1.3.5pinnedanyio<4, so the resolver could not move it. That dependency turned out to be unused and was removed in #125177, which this PR builds on.sniffiois no longer an anyio dependency but stays in the lock via another dependent.On the major version bump (3.x → 4.x)
anyio 4.0.0 has six backwards-incompatible changes; 4.1 through 4.14.2 add none. Only one is reachable from this repo:
ExceptionGroupand related cancellation-semantics changes. No consumer here catchesExceptionGroupor relies on unwrapped task-group exceptions.tests/apigw/test_circuitbreaker.pyuses@pytest.mark.anyio. All 13 tests intests/apigw/pass.anyio.Path.relative_to()/is_relative_to(), old-style coroutine tasks, and the asynciopolicyoption: no usage anywhere.Consumers of anyio in the resolved environment, and why each is safe:
watchfilesgranianwatchfiles.watch()(Rust + threads); the anyio-basedawatch/arun_processpaths are never executed. Reload is dev-only (SENTRY_GRANIAN_RELOAD).httpcoresentry-sdk[http2]AnyIOBackend, async pool only. sentry is WSGI, andsdk_http2_experiment.enableddefaults toFalse.graniantry: import anyio / except: anyio = None; no API use.huggingface_hubtokenizersopen_processmonkeypatch in the MCP CLI, never reached.Verified: every anyio attribute these packages reference resolves under 4.14.2; all four import cleanly;
httpcore'sAnyIOBackendcompletes a real TLS request over anyio 4 (status 200);watchfiles.watch()detects changes;tests/apigw/passes.Worth noting the bump also resolves a latent mismatch:
httpcore 1.0.9declaresanyio>=4.0,<5.0for itsasyncioextra, so at 3.7.1 we were below the floor httpcore supports.Done by hand because Dependabot's auto-fix could not regenerate
uv.lockfor this repo — it ranuvunder Python 3.14 and failed onbackports-zstdhaving no cp314 wheels. #125179 fixed that root cause by declaringrequires-python.Fixes GHSA-82r6-8w77-94w6