CVE-2026-7722: Prefect Prefect Auth Bypass Vulnerability
MODERATECVE-2026-7722 is a MODERATE (CVSS 5.3) prefect auth bypass vulnerability (CWE-287: Improper Authentication) affecting Prefect libraries in the PyPI ecosystem. The issue involves prefect auth bypass via endswith() health check exemption. Remediation is available by upgrading affected packages to version 3.6.22.
CVE-2026-7722 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2026-7722
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.
pip install prefect>=3.6.22
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-7722, 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.22), 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-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. 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
CVE-2026-7722 Affected Prefect Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
prefect
|
PyPI |
< 3.6.22
|
3.6.22
|
References
Frequently Asked Questions
What is CVE-2026-7722?
Which Prefect versions are affected?
What version fixes CVE-2026-7722?
Is prefect affected?
What is the CVSS score of CVE-2026-7722?
What CWE is associated with CVE-2026-7722?
How can I check PyPI dependencies for CVE-2026-7722?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6rr6-v7cj-mxpg",
"modified" : "2026-05-22T13:05:45Z",
"published" : "2026-05-04T03:31:28Z",
"aliases" : [ "CVE-2026-7722" ],
"summary" : "Prefect Auth Bypass via endswith() Health Check Exemption",
"details" : "A vulnerability was detected in PrefectHQ prefect up to 3.6.21. This impacts the function endswith of the file /api/health of the component Health Check API. Performing a manipulation results in improper authentication. The attack is possible to be carried out remotely. The exploit is now public and may be used. Upgrading to version 3.6.22 will fix this issue. Upgrading the affected component is recommended.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "prefect"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.6.22"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-7722"
}, {
"type" : "WEB",
"url" : "https://github.com/PrefectHQ/prefect/pull/21063"
}, {
"type" : "WEB",
"url" : "https://github.com/PrefectHQ/prefect/pull/21063/changes/d8c4ff97ef7c0a940925d32b2d76324c8def42de"
}, {
"type" : "WEB",
"url" : "https://github.com/PrefectHQ/prefect/commit/e21617125335025b4b27e7d6f0ca028e8e8f3b79"
}, {
"type" : "WEB",
"url" : "https://gist.github.com/nedlir/f576abbb0e491dc9bb7e106c140dda04"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/PrefectHQ/prefect"
}, {
"type" : "WEB",
"url" : "https://github.com/PrefectHQ/prefect/releases/tag/3.6.22"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/submit/807255"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/vuln/360898"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/vuln/360898/cti"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-22T13:05:45Z",
"nvd_published_at" : "2026-05-04T03:16:12Z"
}
}