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
- Severity: High (CVSS 3.x base score 7.5)
- EPSS exploit prediction: 1% (46th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2025-6979
- Weakness: CWE-178
- Affected product: Flask-cors Project Flask-cors
- Published:
- Last modified:
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
- https://huntr.com/bounties/808c11af-faee-43a8-824b-b5ab4f62b9e6
- https://lists.debian.org/debian-lts-announce/2025/05/msg00049.html
Affected products (1)
- cpe:2.3:a:flask-cors_project:flask-cors:4.0.1:*:*:*:*:*:*:*
More vulnerabilities in Flask-cors Project Flask-cors
- CVE-2020-25032 — High (CVSS 7.5): An issue was discovered in Flask-CORS (aka CORS Middleware for Flask) before 3.0.9. It allows ../ directory traversal…
- CVE-2024-6844 — Medium (CVSS 5.3): A vulnerability in corydolphin/flask-cors version 4.0.1 allows for inconsistent CORS matching due to the handling of…
- CVE-2024-6839 — Medium (CVSS 5.3): corydolphin/flask-cors version 4.0.1 contains an improper regex path matching vulnerability. The plugin prioritizes…
All CVEs affecting Flask-cors Project Flask-cors →
Other CWE-178 vulnerabilities
- CVE-2026-54763 — Critical (CVSS 10.0): Traefik is an HTTP reverse proxy and load balancer. Prior to v2.11.51, v3.6.22, and v3.7.6, Traefik's BasicAuth,…
- CVE-2026-40453 — Critical (CVSS 9.9): The fix for CVE-2025-27636 added setLowerCase(true) to HttpHeaderFilterStrategy so that case-variant header names such…
- CVE-2026-47323 — Critical (CVSS 9.8): Camel-CXF and Camel-Knative Message Header Injection via Missing Inbound Filtering The CXF and Knative…
- CVE-2024-5699 — Critical (CVSS 9.8): In violation of spec, cookie prefixes such as `__Secure` were being ignored if they were not correctly capitalized - by…
- CVE-2023-3545 — Critical (CVSS 9.8): Improper sanitisation in `main/inc/lib/fileUpload.lib.php` in Chamilo LMS <= v1.11.20 on Windows and Apache…
- CVE-2022-29604 — Critical (CVSS 9.8): An issue was discovered in ONOS 2.5.1. An intent with an uppercase letter in a device ID shows the CORRUPT state, which…