All vulnerabilities

PyPI

CVE-2026-83813

Twisted: DNS Response Spoofing in twisted.names Due to Missing Source Address Validation

Severity
Low 3.1
Published
27 Oct 2026
Last changed
27 Oct 2026
Added to UpHeron
23 Nov 2026
Fixed in
26.10.0rc1
Exploit chance
0.1% in the next 30 daysHigher than 1% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Origin validation error (CWE-346)
Attack
From the same local network · Only under certain conditions · No login needed · No user action needed
Attacker can
Change some data
CVSS vector
CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Also known as
GHSA-jj36-9pvh-vj5r
Sources
OSV.dev and GitHub

Description

twisted.names.dns.DNSDatagramProtocol, the UDP transport used by twisted's DNS client (twisted.names.client.Resolver, createResolver, and anything built on it, including MX lookups in twisted.mail), accepts a DNS response for a pending query solely on the basis of the 16-bit transaction ID matching. It never checks that the response actually originated from the server the query was sent to. Any host that can deliver a UDP packet to the resolver's listening port with the correct transaction ID can inject a forged answer, independent of the real server's address. This is a materially weaker defense than standard DNS resolver practice (transaction ID plus source-address validation, typically also source-port rotation), and enables off-path DNS response spoofing / cache poisoning.

DNSDatagramProtocol.datagramReceived (src/twisted/names/dns.py, line 3350) is:

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
twistedPyPI · osv:PyPI:twisted
  • Every version before 26.10.0rc1

About twisted

Weekly downloads (PyPI)
3,301,576PyPI Stats, 24 Nov 2026

Vulnerabilities in twisted

In our list
2
Published in the last 12 months
2
Critical, last 12 months
0
High, last 12 months
1
Known exploited
0
Search the list for twisted

References