dnspython has excessive memory and CPU use
CVE-2026-128089 · GHSA-vvf4-9x63-8xvv · EUVD-2026-125726 · published 13 Nov 2026
How serious is it
- Severity: high, CVSS score 7.5 out of 10.
- Exploit prediction (EPSS): 0.5% chance of exploitation in the next 30 days, higher than 45% of all vulnerabilities.
- Not on the CISA list of exploited vulnerabilities.
- No public exploit in Exploit-DB.
Is your app affected by CVE-2026-128089?
Paste this prompt into Claude Code, Cursor or any AI coding tool: it runs a free Shippable scan of your project and fixes what it finds. Built with Lovable, Bolt or v0? Scan your live app. Or upload your package file.
Who is affected
dnspython(PyPI) < 2.9.2
How to check
- Run
pip show dnspythonin your project to see the installed version, including copies pulled in by other packages. - Or paste your lockfile into the checker: it lists every package with a known vulnerability, this one included.
- Or run
npx shippable-dev scan localhost:3000in your project folder. It reads your lockfile and flags this vulnerability along with every other known one.
How to fix
Copies a prompt for Claude Code, Cursor or Codex: it checks your lockfiles for this and upgrades it.
- Upgrade
dnspythonto 2.9.2 or later, commit the lockfile and redeploy. - If a vulnerable version was live, check your logs and rotate the secrets that server could read.
The advisory
### Summary
A maliciously crafted zone file could use a WKS record to consume excessive memory and CPU, possibly causing the process to exit due to memory exhaustion.
### Details
The `from_text()` parser does not check that a WKS record service number is between 0 and 65535 inclusive. It then uses this number to resize the bitmap to accommodate a bit with that offset. This can cause extremely large memory allocations, and also extends the array very inefficiently, wasting CPU.
### Proof of concept
This demonstrates the failure to limit the service number, though with a value that does not cause excessive memory or CPU consumption.
```
rd = dns.rdata.from_text("IN", "WKS", "10.0.0.1 udp 65536")
```
### Impact
If dnspython is used to read zonefile format where the attacker can control the type and rdata text, the program may consume excessive memory or CPU, denying service.
Check your whole app
Dependencies are only half of it. Free and read-only: before you push, run npx shippable-dev scan localhost:3000 in your project folder, no account needed. For your live app, you prove it's yours with a one-line tag first.
References
- github.com/rthalley/dnspython/security/advisories/GHSA-vvf4-9x63-8xvv
- github.com/rthalley/dnspython/commit/388db14ee9923288f6e73f86e482c77706e59d73
- github.com/rthalley/dnspython/commit/a62e1be066da0ed71b5b59f37435bb17cfa0070f
- github.com/rthalley/dnspython/releases/tag/v2.9.2
- github.com/advisories/GHSA-vvf4-9x63-8xvv
- github.com/rthalley/dnspython
Merged from GitHub Advisory Database, OSV, ENISA EUVD, FIRST EPSS. Last updated 18 Nov 2026. All vulnerabilities · RSS · JSON