Cross-Site Request Forgery vulnerability in Prefect
An attacker is able to steal secrets and potentially gain remote code execution via CSRF using a self-hosted, open source Prefect API.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | prefect | >= 2.0.0, < 2.16.5 | 2.16.5 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-6022
- https://github.com/prefecthq/prefect/commit/227dfcc7e3374c212a4bcd68b14e090b1c02d9d3
- https://github.com/PrefectHQ/prefect/blob/main/RELEASE-NOTES.md#release-2165
- https://github.com/prefecthq/prefect
- https://huntr.com/bounties/dab47d99-551c-4355-9ab1-c99cb90235af
- https://pypi.org/project/prefect
- https://github.com/advisories/GHSA-4hh5-2678-83fx
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H- Weakness (CWE)
CWE-352- Platform
- Python (PyPI)
- Package
prefect- Disclosed
- 16.11.2023
- Updated
- 11.10.2026 15:17
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2026-1799 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-4hh5-2678-83fx - 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
-
Cross-Site Request Forgery vulnerability in Prefect 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.