High severity · published Mar 20, 2025
CVE-2024-6866
Case-Insensitive Path Matching in corydolphin/flask-cors
7.5
CVSS
0.7%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.7% · higher than 54% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CO
corydolphin/flask-cors · corydolphin
through latest · source: vendor
FL
Flask-cors · Flask-cors Project
4.0.1 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-6866
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-6866
Exploit
https://huntr.com/bounties/808c11af-faee-43a8-824b-b5ab4f62b9e6
lists.debian.org
https://lists.debian.org/debian-lts-announce/2025/05/msg00049.html
More from corydolphin/flask-cors
5.3
CVE-2024-6844
Inconsistent CORS Matching Due to Handling of '+' in URL Path in corydolphin/flask-cors
5.3
CVE-2024-6839
Improper Regex Path Matching in corydolphin/flask-cors
