Advisory

PYSEC-2026-1799

Also known as: CVE-2023-6022, GHSA-4hh5-2678-83fx

Summary

Cross-Site Request Forgery vulnerability in Prefect

Details

An attacker is able to steal secrets and potentially gain remote code execution via CSRF using a self-hosted, open source Prefect API.

Severity

High Basis: CVSS v3 score 8.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Dates

Published
2026-07-07 11:45 UTC
Modified
2026-07-07 17:48 UTC

Affected packages and fixes

prefect

PyPI · All systems

Affected

  • introduced 2.0.0, fixed 2.16.5 (ecosystem)

Fixed versions

2.16.5

Fix

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

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