Skip to content

Require anyio>=4.14.2 to address CVE-2026-63374 - #92

Open
gcko wants to merge 1 commit into
prooflinedev:mainfrom
gcko:fix/cve-2026-63374-anyio-floor
Open

gcko wants to merge 1 commit into
prooflinedev:mainfrom
gcko:fix/cve-2026-63374-anyio-floor

Conversation

@gcko

@gcko gcko commented Nov 23, 2026

Copy link
Copy Markdown

Who this helps

Teams installing proofline-sdk into existing Python environments. requirements-dev.txt already pins anyio==4.15.1 for CI, so lockfile scans pass, but pyproject.toml still declared anyio>=4,<5. Even with httpx2==2.16.2 (anyio>=4.10), pip and uv will keep an already-installed anyio between 4.10.0 and 4.14.1.

anyio before 4.14.2 is vulnerable to CVE-2026-63374 (CVSS 4.0: 9.3), where connect_tcp() and TLSStream.wrap() can validate internationalized hostnames using stdlib IDNA 2003 instead of IDNA 2008, allowing TLS certificate spoofing on divergent non-ASCII domains. Because _transport.base_url accepts non-ASCII HTTPS origins and AsyncProoflineClient uses httpcore2's AnyIO backend, raising the floor makes sure installs get a patched anyio. The same 4.14.2 floor also excludes CVE-2026-63349 and CVE-2026-64847.

Decisions

  • Set the floor to anyio>=4.14.2,<5 instead of >=4.15.1 so downstream environments only have to upgrade past the vulnerable range rather than to the latest minor release.
  • Left requirements-dev.txt, runtime code, and proofline/_generated/ untouched, since the dev lockfile already uses 4.15.1 and the fix belongs in package metadata.
  • Added a unit test in tests/test_http.py that parses [project].dependencies with packaging.requirements.Requirement so the 4.14.2 floor doesn't regress.

Verification

  • Verified 4.0.0, 4.10.0, 4.14.0, and 4.14.1 are rejected by the updated specifier while 4.14.2 and 4.15.1 are accepted.
  • Ran python3 scripts/check.py on macOS (CPython 3.12.13): generation check, contracts, ruff check, ruff format --check, mypy, pytest (220 passed, 8 subtests passed), wheel and sdist builds, and isolated install smoke tests for both distributions.

This branch has not been deployed

No deployments
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