Vulnerabilities in pkg:pypi/prefect
PACKAGECVE-2026-3514 is a HIGH (CVSS 7.5) prefect has an authentication middleware vulnerability (CWE-863: Incorrect Authorization) affecting Prefect libraries in the PyPI ecosystem. The issue involves prefect has an authentication middleware bypass when url paths are appended with 'health' or 'ready'. Remediation is available by upgrading affected packages to version 3.6.22.dev7.
pkg:pypi/prefect
Vulnerability advisories affecting package pkg:pypi/prefect. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-c635-393c-hcx2 | CVE-2026-3514 | HIGH | Prefect has an Authentication Middleware Bypass when URL paths are appended with 'health' or 'ready' |
| GHSA-cw25-2p92-7f75 | CVE-2026-3515 | HIGH | Prefect has an Argument Injection issue |
| GHSA-6rcx-55r6-jx65 | CVE-2026-7725 | LOW | Prefect Git Argument Injection in GitRepository Pull Steps |
| GHSA-p3pq-hxmr-vqqr | CVE-2026-7724 | LOW | Prefect SSRF Bypass via DNS Rebinding in validate_restricted_url |
| GHSA-hvph-5985-r63v | CVE-2026-7723 | MODERATE | Prefect Unauthenticated Event Injection via /api/events/in WebSocket |
| GHSA-6rr6-v7cj-mxpg | CVE-2026-7722 | MODERATE | Prefect Auth Bypass via endswith() Health Check Exemption |
| GHSA-4v9f-r55g-g6hc | CVE-2024-8183 | HIGH | Prefect CORS (Cross-Origin Resource Sharing) misconfiguration |
| GHSA-4hh5-2678-83fx | CVE-2023-6022 | HIGH | Cross-Site Request Forgery vulnerability in Prefect |
CVE-2026-3514 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2026-3514
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.dev7
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-3514, 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.dev7), 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-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. 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-3514 Affected Prefect Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
prefect
|
PyPI |
< 3.6.22.dev7
|
3.6.22.dev7
|
References
Frequently Asked Questions
What is CVE-2026-3514?
Which Prefect versions are affected?
What version fixes CVE-2026-3514?
Is prefect affected?
What is the CVSS score of CVE-2026-3514?
What CWE is associated with CVE-2026-3514?
How can I check PyPI dependencies for CVE-2026-3514?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-c635-393c-hcx2",
"modified" : "2026-07-09T20:53:13Z",
"published" : "2026-06-02T09:36:15Z",
"aliases" : [ "CVE-2026-3514" ],
"summary" : "Prefect has an Authentication Middleware Bypass when URL paths are appended with 'health' or 'ready'",
"details" : "In version 3.6.19 of prefecthq/prefect, an authentication bypass vulnerability exists due to the improper handling of URL path exemptions for health check probes. Specifically, the authentication middleware exempts any URL path ending with 'health' or 'ready' from authentication checks. This allows an attacker to create resources with names ending in 'health' or 'ready' and access them without authentication. Affected endpoints include those for variables, flows, work pools, work queues, and deployments. This vulnerability can lead to unauthorized access to sensitive information, such as API keys and database credentials, stored in Prefect Variables.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "prefect"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.6.22.dev7"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-3514"
}, {
"type" : "WEB",
"url" : "https://github.com/prefecthq/prefect/commit/e21617125335025b4b27e7d6f0ca028e8e8f3b79"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/PrefectHQ/prefect"
}, {
"type" : "WEB",
"url" : "https://huntr.com/bounties/c540e5e1-f74f-44f4-bfa0-9764ff6daa75"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-863" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-09T20:53:13Z",
"nvd_published_at" : "2026-06-02T09:16:16Z"
}
}