Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ classifiers = [
requires-python = ">=3.11"
dependencies = [
"attrs>=22.2.0",
"anyio>=4,<5",
"anyio>=4.14.2,<5",
"httpcore2>=2.16,<2.17",
"httpx2>=2.16,<2.17",
"pydantic>=2.10,<3",
Expand Down
13 changes: 13 additions & 0 deletions tests/test_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -2586,3 +2586,16 @@ def respond(request: Request, index: int) -> Reply:
assert len(exported.rows) == 1
assert exported.rows[0]["claim"] == row["claim"]
assert exported.next_cursor == "next-page"


def test_runtime_anyio_dependency_excludes_cve_2026_63374() -> None:
from packaging.requirements import Requirement

metadata = Path(__file__).resolve().parents[1] / "pyproject.toml"
dependencies = tomllib.loads(metadata.read_text())["project"]["dependencies"]
requirements = {Requirement(entry).name: Requirement(entry) for entry in dependencies}
specifier = requirements["anyio"].specifier
for vulnerable in ("4.0.0", "4.10.0", "4.14.0", "4.14.1"):
assert not specifier.contains(vulnerable, prereleases=True)
for patched in ("4.14.2", "4.15.1"):
assert specifier.contains(patched)