Live threats

All CVEs / Flask-cors Project

CVE-2024-6866Flask-cors Project Flask-cors

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
0.6%
probability of exploitation in 30 days · percentile 45
Auth required
No
Published
Mar 20, 2025
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-178
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Flask-cors.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI flask-cors < 6.0.0 6.0.0 pip install "flask-cors>=6.0.0"
PyPI flask-cors < 6.0.0 6.0.0 pip install "flask-cors>=6.0.0"

Per OSV / GitHub Advisories (GHSA-43qf-4rqw-9q2g, PYSEC-2026-1383). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
flask-cors_projectflask-cors4.0.1

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.