CVE-2026-7724: Prefect SSRF Bypass via DNS Rebinding in validate_restricted_url
A vulnerability has been found in PrefectHQ prefect up to 3.6.28.dev1. Affected by this vulnerability is the function validaterestrictedurl of the component Webhook/Notification. The manipulation leads to time-of-check time-of-use. It is possible to initiate the attack remotely. The attack is considered to have high complexity. The exploitation appears to be difficult.
Published May 4, 2026 · Updated May 22, 2026
Affected packages
prefect
- Ecosystem
- PyPI
- Affected
- < 3.6.28.dev2
- Fixed in
- 3.6.28.dev2
- Check
pip show prefect
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
A vulnerability has been found in PrefectHQ prefect up to 3.6.28.dev1. Affected by this vulnerability is the function validate_restricted_url of the component Webhook/Notification. The manipulation leads to time-of-check time-of-use. It is possible to initiate the attack remotely. The attack is considered to have high complexity. The exploitation appears to be difficult. The exploit has been disclosed to the public and may be used. Upgrading to version 3.6.28.dev2 addresses this issue. The identifier of the patch is 7c70ac54a5e101431d83b9f2681ec88d5e0021ed. Upgrading the affected component is advised.
Credited to nedlir.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-7724
- https://github.com/PrefectHQ/prefect/pull/21591
- https://github.com/PrefectHQ/prefect/commit/7c70ac54a5e101431d83b9f2681ec88d5e0021ed
- https://gist.github.com/nedlir/fa99777e8989414585d08c3625bf044a
- https://github.com/PrefectHQ/prefect
- https://github.com/PrefectHQ/prefect/releases/tag/3.6.28.dev2
- https://linear.app/prefect/issue/OSS-7874/fix-dns-rebinding-toctou-bypass-in-validate-restricted-url
- https://vuldb.com/submit/807303
- https://vuldb.com/vuln/360900
- https://vuldb.com/vuln/360900/cti
- https://github.com/advisories/GHSA-p3pq-hxmr-vqqr
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-5366
Prefect has Git Flag Injection via commit_sha and directories Parameters Leading to Remote Code Execution (RCE)
critical9.9Jun 20, 2026CVE-2026-3514
Prefect has an Authentication Middleware Bypass when URL paths are appended with 'health' or 'ready'
high7.5Jun 2, 2026CVE-2026-3515
Prefect has an Argument Injection issue
high8.5No fixMay 26, 2026CVE-2026-7722
Prefect Auth Bypass via endswith() Health Check Exemption
medium5.3May 4, 2026CVE-2026-7723
Prefect Unauthenticated Event Injection via /api/events/in WebSocket
medium7.3May 4, 2026CVE-2026-7725
Prefect Git Argument Injection in GitRepository Pull Steps
low6.3May 4, 2026
