CVE-2026-77972Slab safeurl
Time-of-check Time-of-use Race Condition in Slab safeurl
Critical 9.0 No auth needed
Follow: this CVE · Slab · Slab safeurl We alert you by email or Slack (account required).
- Priority
- 69
- CVSS 4.0
- 9.0
- EPSS
- —
- Auth required
- No
- Published
- Sep 15, 2026
- Updated
- Sep 21, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-367
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
A Time-of-check Time-of-use (TOCTOU) race condition in Slab safeurl allows an attacker controlling a hostname's DNS responses to bypass validation and reach internal network destinations that were rejected. Validation returns a verdict without the approved address, so HTTP clients receive the original hostname and resolve it again when making the request. An attacker can answer the first DNS lookup with a permitted address and the second with a blocked one.
Show the original NVD text
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.
What to do
No patch data
Review commit feabbd0a13f83028ab24b71710526e9da9841f70 in the safeurl repository to assess if it contains a fix. Contact the Slab team for information on available patches.
- Apply the vendor's security update for safeurl.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Hex | safeurl |
≥ 0.1.0 |
no fixed version | — |
Per OSV / GitHub Advisories (EEF-CVE-2026-77972). Check the version in your lockfile before upgrading.
Affected products
- Slab · safeurl
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.