CVE-2026-7724: Prefect Prefect SSRF Bypass Vulnerability

LOW
Advisory Identifier: GHSA-p3pq-hxmr-vqqr
CVSS 5.0
CWE-362
Published
Advisory Summary

CVE-2026-7724 is a LOW (CVSS 5.0) prefect ssrf bypass vulnerability (CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')) affecting Prefect libraries in the PyPI ecosystem. The issue involves prefect ssrf bypass via dns rebinding in validate_restricted_url. Remediation is available by upgrading affected packages to version 3.6.28.dev2.

CVE-2026-7724 at a Glance

CVE Identifier CVE-2026-7724
GHSA Identifier GHSA-p3pq-hxmr-vqqr
Severity LOW
CVSS v3.1 Base Score 5.0
CWE Classification CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Affected Product Prefect
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2026-7724

To remediate this vulnerability, upgrade all affected Prefect dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

prefect fixed: 3.6.28.dev2
pip install prefect>=3.6.28.dev2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show prefect

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-7724, inspect your installed packages using pip:

pip show prefect

Analyze the terminal output to locate any version of Prefect in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.6.28.dev2), your application is affected.

Note: The pip show prefect command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition'), where the product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently. In Prefect, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2026-7724 Affected Prefect Versions

1 component(s)
Fixed Versions:
3.6.28.dev2
Product / Package Ecosystem Affected Versions Fixed Version
prefect
PyPI
< 3.6.28.dev2
3.6.28.dev2

References

Frequently Asked Questions

What is CVE-2026-7724?
CVE-2026-7724 is a security vulnerability in Prefect involving Prefect SSRF Bypass via DNS Rebinding in validate_restricted_url under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition').
Which Prefect versions are affected?
Affected versions include releases prior to 3.6.28.dev2 across affected packages: prefect.
What version fixes CVE-2026-7724?
Upgrading to 3.6.28.dev2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is prefect affected?
Yes, prefect is affected in releases prior to 3.6.28.dev2. Upgrade your dependency to 3.6.28.dev2 or later.
What is the CVSS score of CVE-2026-7724?
CVE-2026-7724 has a CVSS v3.1 base score of 5.0 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2026-7724?
CVE-2026-7724 is classified under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') (The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.).
How can I check PyPI dependencies for CVE-2026-7724?
Run the dependency tree command: 'pip show prefect'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-p3pq-hxmr-vqqr",
  "modified" : "2026-05-22T13:08:02Z",
  "published" : "2026-05-04T03:31:28Z",
  "aliases" : [ "CVE-2026-7724" ],
  "summary" : "Prefect SSRF Bypass via DNS Rebinding in validate_restricted_url",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "prefect"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.6.28.dev2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-7724"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/PrefectHQ/prefect/pull/21591"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/PrefectHQ/prefect/commit/7c70ac54a5e101431d83b9f2681ec88d5e0021ed"
  }, {
    "type" : "WEB",
    "url" : "https://gist.github.com/nedlir/fa99777e8989414585d08c3625bf044a"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/PrefectHQ/prefect"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/PrefectHQ/prefect/releases/tag/3.6.28.dev2"
  }, {
    "type" : "WEB",
    "url" : "https://linear.app/prefect/issue/OSS-7874/fix-dns-rebinding-toctou-bypass-in-validate-restricted-url"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/submit/807303"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/vuln/360900"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/vuln/360900/cti"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-362" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-22T13:08:02Z",
    "nvd_published_at" : "2026-05-04T03:16:13Z"
  }
}