CVE-2026-7724: Prefect SSRF bypass via DNS rebinding in validate_restricted_url

CVE-2026-7724 · Severity: medium · CVSS 5 · Published 2026-05-04

Prefect is a workflow orchestration platform used to manage and automate data pipelines. A security vulnerability in its notification system could allow an attacker to bypass security filters and force the system to send requests to internal or restricted network locations. This could lead to the exposure of internal service information or unauthorized access to private infrastructure.

Technologies: prefect (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2026-7724 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-7724 being exploited in the wild.
How severe is CVE-2026-7724?
Medium severity, with a CVSS score of 5, published 4 May 2026.
Which products and versions are affected?
prefect (PyPI) < 3.6.28.dev2, ECOSYSTEM:introduced=0,fixed=3.6.28.dev2.
Is there a fix for CVE-2026-7724?
Yes. prefect (PyPI): upgrade to 3.6.28.dev2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-7724 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-7724?
Check whether you run prefect (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • prefect (PyPI): upgrade to 3.6.28.dev2 or later
    pip install "prefect>=3.6.28.dev2"

Technical details

A Server-Side Request Forgery (SSRF) vulnerability exists in Prefect's Webhook and Notification components due to a Time-of-Check Time-of-Use (TOCTOU) flaw in the 'validate_restricted_url' function. An attacker can use DNS rebinding to provide a URL that resolves to a legitimate public IP during the validation phase but resolves to a restricted internal IP during the execution phase. This bypasses restricted URL filters, allowing the application to make requests to internal services. The attack requires network access and has high complexity due to the timing requirements of DNS rebinding. The issue is addressed in version 3.6.28.dev2.

Affected products

  • PrefectHQ prefect < 3.6.28.dev2

Identifiers

  • CVE-2026-7724
  • GHSA-p3pq-hxmr-vqqr
  • PYSEC-2026-2959

Timeline

  • 2026-05-04: disclosed
  • 2026-05-04: advisory
  • 2026-05-22: patched

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.