CVE-2026-77313: Flyto2 Core: SSRF guard validates the resolved IP but connects by hostname, allowing DNS-rebinding TOCTOU
Published 2026-11-20 · Updated 2026-11-20 · Also known as GHSA-pfg2-w999-497v
Summary
Flyto-core fails to pin resolved IP addresses during SSRF validation, allowing attackers to bypass security guards via DNS rebinding. Users of the flyto-core package must upgrade to version 2.26.8 or later to mitigate this vulnerability.
Who is affected
This flaw allows attackers to perform unauthorized requests to internal network services by exploiting the time-of-check to time-of-use (TOCTOU) race condition in DNS resolution. Affected deployments are those relying on validate_url_ssrf to secure network fetches, as the validation step does not enforce the connection to the specific validated IP.
Exploitability
The vulnerability has a High severity rating with a CVSS 3.1 base score of 7.1. Exploitation requires an attacker to possess control over DNS resolution and successfully win a race condition, categorized as high attack complexity.
Remediation
- Upgrade flyto-core to version 2.26.8 or newer.
- Implement custom TCPConnector logic to pin validated IPs if upgrading is not immediately possible.
How to check your project
- Check your project requirements for the 'flyto-core' package version.
- Verify if current versions are less than 2.26.8 by checking the project's dependency lockfile.
Automated analysis of the published advisory data, generated 2026-11-20. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| PyPI | flyto-core |
>= 0, < 2.26.8 | 2.26.8 | python -m pip install 'flyto-core>=2.26.8' |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N
| Attack vector | Network |
|---|---|
| Attack complexity | High |
| Privileges required | Low |
| User interaction | None |
| Scope | Changed |
| Confidentiality | High |
| Integrity | Low |
| Availability | None |
FAQ
Does this vulnerability result in remote code execution?
The reported impact is limited to unauthorized internal data fetching (SSRF), not remote code execution.
Is this vulnerability currently being exploited in the wild?
No, CISA has not listed this as a known exploited vulnerability (KEV).
Why does the existing SSRF guard fail?
The guard resolves the hostname to check for private IPs but discards the IP result, passing the hostname string back to aiohttp, which performs a new, independent DNS lookup at connection time.
Original advisory description
References
- WEB https://github.com/flytohub/flyto-core/security/advisories/GHSA-pfg2-w999-497v
- WEB https://github.com/flytohub/flyto-core/commit/bf748df864d348004cf45d830bc59f62c5c4a58a
- PACKAGE https://github.com/flytohub/flyto-core
- WEB https://github.com/flytohub/flyto-core/releases/tag/v2.26.8
Source records: GHSA-pfg2-w999-497v (OSV.dev) · EPSS by FIRST, 2026-11-21.