CVE catalog

CVE-2024-6866

Flask-CORS vulnerabilities

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.72% · Oct 25, 2026

corydolphin/flask-cors version 4.01 contains a vulnerability where the request path matching is case-insensitive due to the use of the `try_match` function, which is originally intended for matching hosts. This results in a mismatch because paths in URLs are case-sensitive, but the regex matching treats them as case-insensitive. This misconfiguration can lead to significant security vulnerabilities, allowing unauthorized origins to access paths meant to be restricted, resulting in data exposure and potential data leaks.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianpython-flask-corssid6.0.5-1fixed
Debianpython-flask-corsforky6.0.5-1fixed
Debianpython-flask-corstrixie6.0.1-1fixed
Debianpython-flask-corsbookworm3.0.10-2+deb12u1fixed
Ubuntupython-flask-corsnoble4.0.0-1ubuntu0.1~esm1fixed
Ubuntupython3-flask-corsnoble4.0.0-1ubuntu0.1~esm1fixed
PyPIflask-corsNot reported6.0.0fixed
Ubuntupython-flask-corspro4.0.0-1vulnerable
Ubuntupython-flask-corspro4.0.0-1ubuntu0.1~esm1fixed
Ubuntupython-flask-cors22.043.0.9-2vulnerable
Ubuntupython-flask-cors22.043.0.9-2ubuntu0.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpython-flask-corssourcesid6.0.0-1not yet assignedNot reported[1100988]
Debianpython-flask-corssourceforky6.0.0-1not yet assignedNot reported[1100988]
Debianpython-flask-corssourcetrixie6.0.0-1not yet assignedNot reported[1100988]
Debianpython-flask-corssourcebookworm3.0.10-2+deb12u1not yet assignedNot reported[1100988]
Ubuntupython-flask-corsdebnoble4.0.0-1ubuntu0.1~esm1Not reportedNot reportedNot reported
Ubuntupython3-flask-corsdebnoble4.0.0-1ubuntu0.1~esm1Not reportedNot reportedNot reported
PyPIflask-corsPyPINot reported6.0.0Not reportedGHSA-43QF-4RQW-9Q2GNot reported
Ubuntupython-flask-corsdebpro4.0.0-1ubuntu0.1~esm1Not reportedUBUNTU-CVE-2024-6866Not reported
Ubuntupython-flask-corsdeb22.043.0.9-2ubuntu0.1Not reportedUBUNTU-CVE-2024-6866Not reported

[Debian bug #1100988]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [python-flask-cors]

    Details (2)
    • 3.0.10-2+deb12u1 · all · bookworm

      Fixed · Fixed: 3.0.10-2+deb12u1

      usn · python-flask-cors · debian · bookworm; usn · python-flask-cors · debian · 12

    • 3.0.10-2+deb12u1 · all · bookworm

      Fixed · Fixed: 3.0.10-2+deb12u1

      usn · python-flask-cors · debian · bookworm; usn · python-flask-cors · debian · 12

[Debian 13 (Trixie)]

  • Source package: [python-flask-cors]

    Details (2)
    • 6.0.1-1 · all · trixie

      Fixed · Fixed: 6.0.0-1

      usn · python-flask-cors · debian · 13

    • 6.0.1-1 · all · trixie

      Fixed · Fixed: 6.0.0-1

      usn · python-flask-cors · debian · 13

Observed:

References