Skip to main content

Prefect CVE-2026-7722

| EUVDEUVD-2026-26875 MEDIUM
Improper Authentication (CWE-287)
2026-05-04 VulDB
5.5
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker probes Prefect API endpoint
  2. Delivery
    Crafts malicious path ending in health/ready or manipulates Host header
  3. Exploit
    Sends HTTP GET request to vulnerable /api/health or crafted path
  4. Execution
    Authentication middleware incorrectly allows bypass via suffix/header spoofing
  5. Persist
    Unauthenticated access granted to health endpoint
  6. Impact
    Sensitive system state information disclosed

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication mechanism validation
MITRE ATT&CK

2 techniques across 2 tactics: Defense Evasion, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Authentication must be enabled on the Prefect server via the PREFECT_SERVER_API_AUTH_STRING configuration setting. The Health Check API middleware is active in versions 3.6.21 and earlier. Exploitation requires only network access to the Prefect API server and does not require valid credentials, specific deployment mode, or user interaction. The vulnerability is exploitable against default configurations where authentication is configured but the middleware logic is flawed. Non-authenticated Prefect deployments (without PREFECT_SERVER_API_AUTH_STRING set) are not vulnerable since no authentication logic is invoked.

Impact

CVSS 5.5 (AV:N/AC:L/PR:N/UI:N/VC:L) indicates network-accessible authentication bypass with low complexity, no privileges required, and confidentiality impact only. EPSS score not provided, but the presence of publicly available exploit code combined with the straightforward nature of the attack (path manipulation via HTTP requests) suggests moderate real-world risk. The vulnerability is not in CISA KEV status at time of analysis, but public exploit availability lowers the barrier to exploitation. The technical impact is contained - attackers gain only unauthenticated read access to health status endpoints, not administrative capabilities. However, in environments where Prefect server is exposed to untrusted networks and health endpoint exposure is considered sensitive (e.g., information disclosure about system state), this represents a legitimate authentication control failure. Organizations with authentication enabled on Prefect deployments should treat this as medium priority given the low complexity and public POC, but the limited scope (health endpoints only, no data modification) prevents this from being critical.

Exploit ScenarioDerived

An attacker with network access to an unauthenticated Prefect server deployment crafts an HTTP GET request to /api/variables/name/system-health or similar path ending in "health". The vulnerable suffix matching logic incorrectly permits this request through the authentication middleware, returning health status information that would normally require authentication. Alternatively, the attacker sends a request to a protected endpoint (e.g., /api/version) with a crafted Host header value of "localhost/health?" that causes request.url.path to be reconstructed as /health, bypassing authentication checks while the actual endpoint served remains protected. A published proof-of-concept demonstrates this technique.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 04, 2026

Authentication bypass in Prefect up to version 3.6.21 allows remote unauthenticated attackers to access the Health Check API endpoint by manipulating the request path suffix matching logic. The vulnerability affects the /api/health endpoint's improper authentication validation using the endswith() function, enabling attackers to craft requests that bypass authentication checks. Publicly available exploit code exists and the vendor has released patch version 3.6.22.

RemediationAI

Upgrade to Prefect version 3.6.22 or later immediately. The patched version replaces suffix-based path matching with exact path comparison against a whitelist of {/health, /ready} endpoints and uses scope["path"] instead of request.url.path to prevent Host header spoofing. For organizations unable to upgrade immediately, implement network-level access controls by restricting access to the /api/health and /api/ready endpoints to trusted health probe sources only (e.g., Kubernetes node IPs, monitoring infrastructure). This workaround requires identifying all legitimate health probe clients and maintaining firewall rules accordingly, with the trade-off that legitimate probes from unexpected sources will be blocked. Additionally, disable authentication exemption entirely by removing the PREFECT_SERVER_API_AUTH_STRING setting if health probes can be configured to provide credentials, though this may require changes to monitoring infrastructure. Patch availability is confirmed: vendor-released patch version 3.6.22 at https://github.com/PrefectHQ/prefect/releases/tag/3.6.22.

Affected VersionsENISA

prefect 3.6.16
prefect 3.6.13
prefect 3.6.19
prefect 3.6.10
prefect 3.6.11
prefect 3.6.6
prefect 3.6.15
prefect 3.6.0
prefect 3.6.20
prefect 3.6.9
prefect 3.6.3
prefect 3.6.18
prefect 3.6.5
prefect 3.6.14
prefect 3.6.1
prefect 3.6.12
prefect 3.6.21
prefect 3.6.4
prefect 3.6.8
prefect 3.6.17
prefect 3.6.7
prefect 3.6.2

Affected Packages

pypi prefect fix: 3.6.22

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Prefect's Health Check API middleware used suffix-based path matching via request.url.path.endswith(("health", "ready")) to exempt health probe requests from authentication. This implementation is vulnerable to two attack vectors: first, attacker-controlled paths ending in "health" or "ready" (e.g., /api/variables/name/system-health) would bypass authentication despite not being legitimate health endpoints; second, HTTP Host header manipulation could spoof the request.url.path value, allowing attackers to craft paths that appear to end with health/ready while accessing protected endpoints. The root cause is CWE-287 (Improper Authentication), stemming from reliance on URL suffix matching rather than exact path validation and trusting request.url.path which can be reconstructed from the Host header. The fix changes to exact path matching using scope["path"] (which is not spoofable) against a predefined set {/health, /ready}, eliminating both bypass vectors.

Know when Prefect gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulDB) PRIMARY 5.5 MEDIUM
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

Primary rating from Vendor (VulDB) · only source for this CVE.

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

4
PoC Detected
May 04, 2026 - 15:18 vuln.today
Public exploit code
CVSS changed
May 04, 2026 - 03:22 NVD
5.3 (MEDIUM) 5.5 (MEDIUM)
Patch released
May 04, 2026 - 03:00 nvd
Patch available
CVE Published
May 04, 2026 - 02:15 nvd
MEDIUM 5.5

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.1%
Top 78% exploitable
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

48
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Related Vulnerabilities in PrefectHQ prefect Multiple Vulnerabilities

View all 4

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy