# CVE-2023-6022: PYSEC-2026-1799 - Cross-Site Request Forgery vulnerability in Prefect

Source: https://junglewise.ai/threats/cve-2023-6022-cross-site-request-forgery-vulnerability-in-prefect  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-07  
License: CC BY 4.0 with a link back

CVE-2023-6022 · Severity: low · CVSS 3.1 · Published 2026-07-07

Cross-Site Request Forgery vulnerability in Prefect

Technologies: [prefect (PyPI)](https://junglewise.ai/threats/technologies/prefect). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2023-6022 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2023-6022 being exploited in the wild.

**How severe is CVE-2023-6022?** Low severity, with a CVSS score of 3.1, published 7 July 2026.

**Which products and versions are affected?** prefect (PyPI) ECOSYSTEM:introduced=2.0.0,fixed=2.16.5.

**Is there a fix for CVE-2023-6022?** Yes. prefect (PyPI): upgrade to 2.16.5 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2023-6022?** Check whether you run prefect (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- prefect (PyPI): upgrade to 2.16.5 or later

  ```sh
  pip install "prefect>=2.16.5"
  ```


## Affected products

- prefect (PyPI) ECOSYSTEM:introduced=2.0.0,fixed=2.16.5

## Identifiers

- CVE-2023-6022
- GHSA-4hh5-2678-83fx
- PYSEC-2026-1799

## Related threats

- [PYSEC-2026-1800 - Prefect CORS (Cross-Origin Resource Sharing) misconfiguration](https://junglewise.ai/threats/cve-2024-8183-prefect-cors-cross-origin-resource-sharing-misconfiguration)
- [Prefect remote code execution in GitRepository storage class](https://junglewise.ai/threats/cve-2026-5366-prefect-remote-code-execution-in-gitrepository-storage-class)
- [Prefect authentication bypass via health check path exemption](https://junglewise.ai/threats/cve-2026-3514-prefect-authentication-bypass-via-health-check-path-exemption)
- [Prefect prefect-github argument injection in GitHubRepository](https://junglewise.ai/threats/cve-2026-3515-prefect-prefect-github-argument-injection-in-githubrepository)
- [Prefect Git argument injection in GitRepository Pull Handler](https://junglewise.ai/threats/cve-2026-7725-prefect-git-argument-injection-in-gitrepository-pull-handler)
