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.
History

Fri, 01 Aug 2025 01:45:00 +0000

Type Values Removed Values Added
First Time appeared Flask-cors Project
Flask-cors Project flask-cors
CPEs cpe:2.3:a:flask-cors_project:flask-cors:4.0.1:*:*:*:*:*:*:*
Vendors & Products Flask-cors Project
Flask-cors Project flask-cors
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}


Thu, 20 Mar 2025 19:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 20 Mar 2025 10:15:00 +0000

Type Values Removed Values Added
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.
Title Case-Insensitive Path Matching in corydolphin/flask-cors
Weaknesses CWE-178
References
Metrics cvssV3_0

{'score': 5.3, 'vector': 'CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: @huntr_ai

Published: 2025-03-20T10:10:59.521Z

Updated: 2025-03-20T18:14:35.722Z

Reserved: 2024-07-17T21:09:41.423Z

Link: CVE-2024-6866

cve-icon Vulnrichment

Updated: 2025-03-20T17:47:45.479Z

cve-icon NVD

Status : Analyzed

Published: 2025-03-20T10:15:34.620

Modified: 2025-08-01T01:36:17.260

Link: CVE-2024-6866

cve-icon Redhat

No data.