All vulnerabilities

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
Weakness
Time-of-check time-of-use race condition (CWE-367)Server-side request forgery (CWE-918)
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.

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

Affected software

SoftwareAffected versions
flyto-corePyPI · osv:PyPI:flyto-core
  • Every version before 2.26.8

About flyto-core

Weekly downloads (PyPI)
658PyPI Stats, 24 Nov 2026

References