Skip to content

fix(deps): bump dnspython to 2.9.2 for CVE-2026-128089 - #72

Merged
dfkunstler merged 1 commit into
mainfrom
fix/deps-dnspython-cve
Nov 17, 2026
Merged

dfkunstler merged 1 commit into
mainfrom
fix/deps-dnspython-cve

Conversation

@dfkunstler

Copy link
Copy Markdown
Member

hatch run security:scan-deps fails every build: pip-audit reports CVE-2026-128089 in dnspython 2.9.1 (fixed in 2.9.2).
dnspython is a transitive runtime dependency (pydantic[email] -> email-validator -> dnspython).

Re-locked with PIP_COMPILE_UPGRADE_PACKAGE=dnspython hatch run lock. The only changes are dnspython 2.9.1 -> 2.9.2
in requirements.txt and the four hatch-test lockfiles, plus their constraint-hash header line. Locally:
security:scan-deps reports no known vulnerabilities; hatch test -py 3.14 passes.

Unblocks #71.

Benchmarks

hatch run python scripts/bench_serialization.py, SP 800-53 rev5 catalog, Python 3.14.8, pydantic 2.14.2, median of 7
(ms, GC on / GC off). dnspython is not on the parse or serialize path; the differences are noise.

Path Before After
parse_oscal(bytes) 65.1 / 47.0 64.1 / 47.3
serialize_oscal(doc, indent=None) 137.7 / 130.4 136.5 / 129.7
serialize_oscal(doc) 146.0 / 138.7 145.4 / 137.8
doc.model_dump_json() 142.3 / 136.6 143.4 / 136.0
pydantic_core.to_json(doc) 143.1 / 136.5 143.4 / 138.1

pip-audit fails the build on dnspython 2.9.1 (CVE-2026-128089, fixed in
2.9.2). dnspython is a transitive dependency of pydantic[email] through
email-validator. Re-lock only dnspython in the default and hatch-test
lockfiles; no other package moves.
@dfkunstler
dfkunstler merged commit 92680a9 into main Nov 17, 2026
6 checks passed
@dfkunstler
dfkunstler deleted the fix/deps-dnspython-cve branch November 17, 2026 02:21
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