Prefect Auth Bypass via endswith() Health Check Exemption
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | prefect | < 3.6.22 | 3.6.22 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-7722
- https://github.com/PrefectHQ/prefect/pull/21063
- https://github.com/PrefectHQ/prefect/pull/21063/changes/d8c4ff97ef7c0a940925d32b2d76324c8def42de
- https://github.com/PrefectHQ/prefect/commit/e21617125335025b4b27e7d6f0ca028e8e8f3b79
- https://gist.github.com/nedlir/f576abbb0e491dc9bb7e106c140dda04
- https://github.com/PrefectHQ/prefect
- https://github.com/PrefectHQ/prefect/releases/tag/3.6.22
- https://vuldb.com/submit/807255
- https://vuldb.com/vuln/360898
- https://vuldb.com/vuln/360898/cti
- https://pypi.org/project/prefect
- https://github.com/advisories/GHSA-6rr6-v7cj-mxpg
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N- Weakness (CWE)
CWE-287- Platform
- Python (PyPI)
- Package
prefect- Disclosed
- 04.05.2026
- Updated
- 11.10.2026 15:17
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2026-2956 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-6rr6-v7cj-mxpg - CC BY 4.0
Vulnerability history: prefect
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 8
- First → latest
- 11.2023 06.2026
- Without a fix
- 1
- Exploited in attacks
- 0
Severity breakdown
- High 4
- Medium 2
- Low 2
Disclosures per year
- 2023: 1
- 2024: 0
- 2025: 1
- 2026: 6
-
Prefect Auth Bypass via endswith() Health Check Exemption this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.