PyPI
CVE-2026-77313
Flyto2 Core: SSRF guard validates the resolved IP but connects by hostname, allowing DNS-rebinding TOCTOU
- Severity
- High 7.1
- Published
- 20 Nov 2026
- Last changed
- 20 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 2.26.8
- Exploit chance
- 0.3% in the next 30 daysHigher than 22% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Over the network · Only under certain conditions · Needs a user account · No user action needed
- Attacker can
- Read data · Change some data
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N- Also known as
- GHSA-pfg2-w999-497v
- Sources
- OSV.dev and GitHub
Description
validate_url_ssrf resolves the hostname, checks the IP against private ranges, then discards the IP and returns the hostname URL string. aiohttp performs a fresh, independent DNS resolution at connect time. An attacker controlling DNS for a hostname (TTL 0, alternating public IP and internal IP) passes validation on the first lookup and connects to the internal IP on the second — a classic check-then-use race. SECURITY_SSRF.md line 63 explicitly claims DNS-rebinding is prevented; it is not.
src/core/utils.py:523 returns the hostname URL after validation; the resolved IP is never pinned. A repo grep of http/ and utils.py for TCPConnector / resolver / response.history / on_request_redirect / IP-pinning returns NONE. Each module builds a fresh ClientSession per call → the connect-time getaddrinfo is independent of the validation-time lookup.
Affected software
| Software | Affected versions |
|---|---|
flyto-corePyPI · osv:PyPI:flyto-core |
|
About flyto-core
- Weekly downloads (PyPI)
- 658PyPI Stats, 24 Nov 2026
Vulnerabilities in flyto-core
- In our list
- 4
- Published in the last 12 months
- 4
- Critical, last 12 months
- 1
- High, last 12 months
- 3
- Known exploited
- 0
- CVE-2026-77316Flyto2 Core: SSRF guard bypass via DNS rebinding (validate_url_ssrf resolves-then-connects without pinning)High 7.1 20 Nov 2026
- CVE-2026-77315Flyto2 Core: http.paginate follows server-supplied next-page URLs (Link header / cursor) without SSRF revalidationHigh 8.5 20 Nov 2026
- CVE-2026-77312Flyto2 Core: Arbitrary file write via unguarded data.*/file.* modules (incomplete fix of CVE-2026-67429)Critical 10.0 20 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-77313
- GitHub Advisory Database https://github.com/advisories/GHSA-pfg2-w999-497v