Advisory

PYSEC-2026-2956

Also known as: CVE-2026-7722, GHSA-6rr6-v7cj-mxpg

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

Medium Basis: CVSS v3 score 5.3, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Dates

Published
2026-07-13 15:02 UTC
Modified
2026-07-13 16:32 UTC

Affected packages and fixes

prefect

PyPI · All systems

Affected

  • introduced 0, fixed 3.6.22 (ecosystem)

Fixed versions

3.6.22

Fix

  • Fixed version 3.6.22
    pip install --upgrade prefect==3.6.22

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences