CVE-2024-6866

CVE-2024-6866 is a high-severity vulnerability in Flask-cors Project Flask-cors with a CVSS 3.x base score of 7.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-178.

Key facts

Description

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.

Frequently asked questions

What is CVE-2024-6866?
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.
How severe is CVE-2024-6866?
CVE-2024-6866 has a CVSS 3.x base score of 7.5, rated high severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity none, and availability none.
Is CVE-2024-6866 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (46th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2024-6866?
CVE-2024-6866 affects Flask-cors Project Flask-cors. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2024-6866?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
Does CVE-2024-6866 have an EU (EUVD) identifier?
Yes. CVE-2024-6866 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2025-6979.
When was CVE-2024-6866 published?
CVE-2024-6866 was published on 2025-03-20 and last updated on 2026-06-17.

References

Affected products (1)

More vulnerabilities in Flask-cors Project Flask-cors

All CVEs affecting Flask-cors Project Flask-cors →

Other CWE-178 vulnerabilities

Browse all CWE-178 vulnerabilities →