PyPI (Python)Worst: Critical9 advisories

prefect: known vulnerabilities

prefect has 9 reviewed security advisories in the GitHub Advisory Database — 1 critical, 4 high, 2 moderate, 2 low. The most recent was published 2026-06-20. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the prefect versions running across your servers, containers and images, and ranks what to patch first.

How to fix prefect

Upgrade prefect to a release at or above the fixed version shown for each advisory below. For PyPI (Python):

pip install --upgrade prefect (pin prefect>=3.6.25)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (9)

Prefect has Git Flag Injection via commit_sha and directories Parameters Leading to Remote Code Execution (RCE) Critical 9.9 CWE-94 — Affected: from 3.1.11 up to 3.6.25. Fixed in 3.6.25. Published 2026-06-20. GHSA-7pm4-56h2-5rxr · CVE-2026-5366
Prefect has an Authentication Middleware Bypass when URL paths are appended with 'health' or 'ready' High 7.5 CWE-863 — Affected: before 3.6.22.dev7. Fixed in 3.6.22.dev7. Published 2026-06-02. GHSA-c635-393c-hcx2 · CVE-2026-3514
Prefect has an Argument Injection issue High 8.5 CWE-88 — Affected: up to and including 3.6.18. No fixed release is listed. Published 2026-05-24. GHSA-cw25-2p92-7f75 · CVE-2026-3515
Prefect Git Argument Injection in GitRepository Pull Steps Low 6.3 CWE-74 — Affected: before 3.6.25.dev7. Fixed in 3.6.25.dev7. Published 2026-05-04. GHSA-6rcx-55r6-jx65 · CVE-2026-7725
Prefect Auth Bypass via endswith() Health Check Exemption Moderate 5.3 CWE-287 — Affected: before 3.6.22. Fixed in 3.6.22. Published 2026-05-04. GHSA-6rr6-v7cj-mxpg · CVE-2026-7722
Prefect Unauthenticated Event Injection via /api/events/in WebSocket Moderate 7.3 CWE-287 — Affected: before 3.6.14. Fixed in 3.6.14. Published 2026-05-04. GHSA-hvph-5985-r63v · CVE-2026-7723
Prefect SSRF Bypass via DNS Rebinding in validate_restricted_url Low 5.0 CWE-362 — Affected: before 3.6.28.dev2. Fixed in 3.6.28.dev2. Published 2026-05-04. GHSA-p3pq-hxmr-vqqr · CVE-2026-7724
Prefect CORS (Cross-Origin Resource Sharing) misconfiguration High 7.6 CWE-346 — Affected: before 2.20.17. Fixed in 2.20.17. Published 2025-03-20. GHSA-4v9f-r55g-g6hc · CVE-2024-8183
Cross-Site Request Forgery vulnerability in Prefect High 8.8 CWE-352 — Affected: from 2.0.0 up to 2.16.5. Fixed in 2.16.5. Published 2023-11-16. GHSA-4hh5-2678-83fx · CVE-2023-6022

Find prefect across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.