CVE-2026-83813: Twisted: DNS Response Spoofing in twisted.names Due to Missing Source Address Validation

Published Oct 23, 2026
·
Updated

Twisted is an event-based framework for internet applications, supporting Python 3.6+. Prior to 26.10.0rc1, twisted.names.dns.DNSDatagramProtocol accepts a UDP DNS response for a pending query when its 16-bit transaction ID matches but does not verify that the response came from the queried host and port. An attacker able to deliver a packet to the resolver's listening port with the correct transaction ID can inject a forged answer. The standard twisted.names.client.Resolver uses a new random source port for each query, increasing off-path attack complexity, while applications that reuse a DNSDatagramProtocol instance expose only the transaction-ID search space after the first query. A successful forgery can redirect hostname resolution and enable mail interception, server-side request forgery, or man-in-the-middle positioning. This issue is fixed in version 26.10.0rc1.

Affected Software

1 affected component
Twisted Twisted<26.10.0rc1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Twisted to a version that resolves this vulnerability.

    Fixed in 26.10.0rc1

Event History

Oct 23, 2026
CVE Published
via MITRE·08:21 PM
Data Sourced
via MITRE·08:21 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which Twisted DNS usage patterns are most exposed?

Applications that reuse a DNSDatagramProtocol instance are more exposed after the first query, because an attacker need only search the 16-bit transaction-ID space. The standard twisted.names.client.Resolver is harder to attack off-path because it selects a new random source port for each query.

2

What does an attacker need to exploit this issue?

An attacker must be able to deliver a UDP packet to the resolver's listening port and correctly match the transaction ID of a pending query. No authentication or user interaction is required.

3

What is the available remediation?

Upgrade to Twisted version 26.10.0rc1, which fixes the missing source host and port validation for DNS responses.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203