Skip to content

← Public intelligence

PyPI package

prefect

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

8 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. Critical, CVSS 9.9PyPIAmendedPublished

    Prefect has Git Flag Injection via commit_sha and directories Parameters Leading to Remote Code Execution (RCE)

    CVE-2026-5366 · GHSA-7pm4-56h2-5rxr

    Affected
    • PyPI prefect >= 3.1.11, < 3.6.25
    Fixed in
    3.6.25· Vendor fix available
    Issue
    Prefect versions 3.1.11 through 3.6.24 are vulnerable to remote code execution due to improper handling of user-controlled input in the `GitRepository` storage class. The `commit_sha` parameter, which is passed to git commands, lacks validation and does not include a `--` separator to distinguish user input from git flags. This allows attackers to inject arbitrary git flags, such as `--upload-pack`, enabling execution of external programs. Additionally, the `directories` parameter can be exploited to inject git flags during sparse-checkout operations. These vulnerabilities allow any user with deployment creation permissions to execute arbitrary commands on worker machines, compromising shared work pools in multi-tenant environments.

    Recommended action: Upgrade to 3.6.25 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.com (1)osv.dev (2)Source checked Evidence →
  2. High, CVSS 7.5PyPIAmendedPublished

    Prefect has an Authentication Middleware Bypass when URL paths are appended with 'health' or 'ready'

    CVE-2026-3514 · GHSA-c635-393c-hcx2

    Affected
    • PyPI prefect < 3.6.22.dev7
    Fixed in
    3.6.22.dev7· Vendor fix available
    Issue
    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.

    Recommended action: Upgrade to 3.6.22.dev7 (pre-release) or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  3. Low, CVSS 2.1PyPIAmendedPublished

    Prefect Git Argument Injection in GitRepository Pull Steps

    CVE-2026-7725 · GHSA-6rcx-55r6-jx65

    Affected
    • PyPI prefect < 3.6.25.dev7
    Fixed in
    3.6.25.dev7· Vendor fix available
    Issue
    A vulnerability was found in PrefectHQ prefect up to 3.6.25.dev6. Affected by this issue is some unknown functionality of the file src/prefect/runner/storage.py of the component GitRepository Pull Handler. The manipulation of the argument commitsha/directories results in argument injection. It is possible to launch the attack remotely. The exploit has been made public and could be used. Upgrading to version 3.6.25.dev7 can resolve this issue. The patch is identified as 6a9d9918716ce4ee0297b69f3046f7067ef1faae. It is advisable to upgrade the affected component.

    Recommended action: Upgrade to 3.6.25.dev7 (pre-release) or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  4. Low, CVSS 1.3PyPIAmendedPublished

    Prefect SSRF Bypass via DNS Rebinding in validate_restricted_url

    CVE-2026-7724 · GHSA-p3pq-hxmr-vqqr

    Affected
    • PyPI prefect < 3.6.28.dev2
    Fixed in
    3.6.28.dev2· Vendor fix available
    Issue
    A vulnerability has been found in PrefectHQ prefect up to 3.6.28.dev1. Affected by this vulnerability is the function validaterestrictedurl of the component Webhook/Notification. The manipulation leads to time-of-check time-of-use. It is possible to initiate the attack remotely. The attack is considered to have high complexity. The exploitation appears to be difficult. The exploit has been disclosed to the public and may be used. Upgrading to version 3.6.28.dev2 addresses this issue. The identifier of the patch is 7c70ac54a5e101431d83b9f2681ec88d5e0021ed. Upgrading the affected component is advised.

    Recommended action: Upgrade to 3.6.28.dev2 (pre-release) or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  5. Medium, CVSS 5.5PyPIAmendedPublished

    Prefect Auth Bypass via endswith() Health Check Exemption

    CVE-2026-7722 · GHSA-6rr6-v7cj-mxpg

    Affected
    • PyPI prefect < 3.6.22
    Fixed in
    3.6.22· Vendor fix available
    Issue
    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.

    Recommended action: Upgrade to 3.6.22 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  6. Medium, CVSS 5.5PyPIAmendedPublished

    Prefect Unauthenticated Event Injection via /api/events/in WebSocket

    CVE-2026-7723 · GHSA-hvph-5985-r63v

    Affected
    • PyPI prefect < 3.6.14
    Fixed in
    3.6.14· Vendor fix available
    Issue
    A flaw has been found in PrefectHQ prefect up to 3.6.13. Affected is an unknown function of the file /api/events/in of the component WebSocket Endpoint. Executing a manipulation can lead to missing authentication. The attack may be performed from remote. The exploit has been published and may be used. Upgrading to version 3.6.14 is able to address this issue. This patch is called 0d3ab3c2d3f9f98abfafdf7b9f6d4f8ed3925e40. It is recommended to upgrade the affected component.

    Recommended action: Upgrade to 3.6.14 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  7. High, CVSS 7.6PyPIAmendedPublished

    Prefect CORS (Cross-Origin Resource Sharing) misconfiguration

    CVE-2024-8183 · GHSA-4v9f-r55g-g6hc

    Affected
    • PyPI prefect >= 3.0.0rc1, < 3.0.3; < 2.20.17
    Fixed in
    2.20.173.0.3· Vendor fix available
    Issue
    A CORS (Cross-Origin Resource Sharing) misconfiguration in prefecthq/prefect prior to version 3.0.3 allows unauthorized domains to access sensitive data. This vulnerability can lead to unauthorized access to the database, resulting in potential data leaks, loss of confidentiality, service disruption, and data integrity risks.

    Recommended action: Upgrade to 3.0.3 or 2.20.17 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  8. High, CVSS 8.8PyPIAmendedPublished

    Cross-Site Request Forgery vulnerability in Prefect

    CVE-2023-6022 · GHSA-4hh5-2678-83fx

    Affected
    • PyPI prefect >= 2.0.0, < 2.16.5
    Fixed in
    2.16.5· Vendor fix available
    Issue
    An attacker is able to steal secrets and potentially gain remote code execution via CSRF using a self-hosted, open source Prefect API.

    Recommended action: Upgrade to 2.16.5 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →