CVE-2026-77972: safeurl validated address is not bound to the request, allowing DNS rebinding

Published Sep 15, 2026
·
Updated

Time-of-check Time-of-use (TOCTOU) Race Condition in Slab safeurl allows an attacker who controls a hostname's DNS responses to reach internal network destinations that validation rejected.

Validation returns a verdict and not the address it approved, so the HTTP clients the library ships receive the original hostname and resolve it a second time when the request is made. An attacker who controls the authoritative DNS for a name can answer the first lookup with a permitted address and the second with a blocked one, and the request then reaches a destination validation never approved. The same window opens without an attacker whenever a name legitimately resolves to different addresses across lookups, such as short record lifetimes or rotation between several addresses.

This issue affects safeurl: from 0.1.0 onward.

Affected Software

1 affected component
safeurl>=undefined

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade safeurl to a version that resolves this vulnerability.

    Fixed in 0.1.0
  2. Compensating control

    Mitigate DNS rebinding/TOCTOU by ensuring hostnames resolved by safeurl cannot change IPs between the safeurl validation lookup and the actual HTTP request (e.g., disable or restrict DNS responses for authoritative domains you do not trust; ensure clients use only DNS that cannot be controlled by an attacker).

Event History

Sep 15, 2026
CVE Published
via MITRE·03:37 PM
Data Sourced
via MITRE·03:37 PM
DescriptionWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Applications using safeurl version 0.1.0 or later are affected when they make requests to hostnames whose DNS answers can change between validation and connection. The highest-risk case is an attacker-controlled hostname with attacker-controlled authoritative DNS responses.

2

What does an attacker need to exploit the issue?

The attacker needs control of DNS responses for a hostname. They must cause the hostname to resolve to a permitted address during safeurl validation and to a blocked internal address when the HTTP client resolves the hostname again for the request.

3

Can this occur without an attacker controlling DNS?

Yes. A hostname that legitimately returns different addresses on separate lookups, such as through short DNS record lifetimes or address rotation, can create the same validation-to-request mismatch.

4

How can I determine whether a request may be affected?

Review uses of safeurl where validation is followed by an HTTP request using the original hostname. Those requests are vulnerable to a changed DNS result because the validation verdict is not bound to the address used by the HTTP client.

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