Is flask-cors 4.0 vulnerable?

PyPI · 3 releases from 4.0.0 to 4.0.2 · latest flask-cors is 6.0.5 · checked 18 Nov 2026

Yes: 3 known advisories

Yes. flask-cors 4.0.2, the last 4.0 release, is affected by 3 known security advisories (3 medium), including CVE-2024-6866, CVE-2024-6839, CVE-2024-6844. 2 more affect earlier 4.0.x releases. Upgrade to 6.0.0 or later to fix all of them.

Upgrade with:pip install 'flask-cors>=6.0.0'

Is your project on an affected flask-cors?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Advisories affecting flask-cors 4.0.2

  • MediumCVE-2024-6866GHSA-43qf-4rqw-9q2g20 Mar 2025

    Flask-CORS vulnerable to Improper Handling of Case Sensitivity

    Affected
    <6.0.0
    Fixed in
    6.0.0
  • MediumCVE-2024-6839GHSA-7rxf-gvfg-47g420 Mar 2025

    Flask-CORS improper regex path matching vulnerability

    Affected
    <6.0.0
    Fixed in
    6.0.0
  • MediumCVE-2024-6844GHSA-8vgw-p6qm-5gr720 Mar 2025

    Flask-CORS allows for inconsistent CORS matching

    Affected
    <6.0.0
    Fixed in
    6.0.0

Fixed within 4.0.x, affecting earlier releases

  • HighCVE-2024-6221GHSA-hxwh-jpp2-84pm18 Aug 2024

    Flask-CORS allows the `Access-Control-Allow-Private-Network` CORS header to be set to true by default

    Affected
    <4.0.2
    Fixed in
    4.0.2
  • MediumCVE-2024-1681GHSA-84pr-m4jr-85g519 Apr 2024

    flask-cors vulnerable to log injection when the log level is set to debug

    Affected
    <4.0.1
    Fixed in
    4.0.1

Every flask-cors 4.0.x release

Affected: 4.0.0 to 4.0.2. Latest flask-cors: 6.0.5.

VersionKnown advisories
flask-cors 4.0.2CVE-2024-6866, CVE-2024-6839, CVE-2024-6844
flask-cors 4.0.1CVE-2024-6866, CVE-2024-6839, CVE-2024-6844, CVE-2024-6221
flask-cors 4.0.0CVE-2024-6866, CVE-2024-6839, CVE-2024-6844, CVE-2024-6221, CVE-2024-1681

Which of your client projects are still on flask-cors 4.0?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact flask-cors version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other flask-cors versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the PyPI registry. Refreshed daily.