CVE-2024-6866

Case-Insensitive Path Matching in corydolphin/flask-cors

Published Mar 20, 2025 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4197-1 python-flask-cors security update
EUVD EUVD EUVD-2025-6979 Flask-CORS vulnerable to Improper Handling of Case Sensitivity
Github GHSA Github GHSA GHSA-43qf-4rqw-9q2g Flask-CORS vulnerable to Improper Handling of Case Sensitivity
Ubuntu USN Ubuntu USN USN-7612-1 Flask-CORS vulnerabilities
History
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'}

Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
@huntr_ai
Published
Updated
Nov 3, 2025, 7:34 PM
Reserved
Jul 17, 2024, 9:09 PM
Status
Modified
Published
Mar 20, 2025, 10:15 AM
Modified
Jun 17, 2026, 8:18 AM