Is flask-cors 2.1 vulnerable?

PyPI · 4 releases from 2.1.0 to 2.1.3 · latest flask-cors is 6.0.5 · checked 18 Nov 2026

Yes: 6 known advisories

Yes. flask-cors 2.1.3, the last 2.1 release, is affected by 6 known security advisories (2 high, 4 medium), including CVE-2024-6221, CVE-2020-25032, CVE-2024-6866. 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 2.1.3

  • 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
  • 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
  • HighCVE-2020-25032GHSA-xc3p-ff3m-f46v6 May 2021

    Flask-Cors Directory Traversal vulnerability

    Affected
    <3.0.9
    Fixed in
    3.0.9

Every flask-cors 2.1.x release

Affected: 2.1.0 to 2.1.3. Latest flask-cors: 6.0.5.

VersionKnown advisories
flask-cors 2.1.3CVE-2024-6866, CVE-2024-6839, CVE-2024-6844, CVE-2024-6221, CVE-2024-1681, CVE-2020-25032
flask-cors 2.1.2CVE-2024-6866, CVE-2024-6839, CVE-2024-6844, CVE-2024-6221, CVE-2024-1681, CVE-2020-25032
flask-cors 2.1.1CVE-2024-6866, CVE-2024-6839, CVE-2024-6844, CVE-2024-6221, CVE-2024-1681, CVE-2020-25032
flask-cors 2.1.0CVE-2024-6866, CVE-2024-6839, CVE-2024-6844, CVE-2024-6221, CVE-2024-1681, CVE-2020-25032

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

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.