CVE-2024-6866CWE-178

Case-Insensitive Path Matching in corydolphin/flask-cors

Medium · published March 20, 2025

CVSS v3.0
5.3
EPSS
1%
Percentile
53.4
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.0
5.3 · MEDIUM
Vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00720 · 53.4th percentile
Weakness
CWE-178 · Improper Handling of Case Sensitivity
Published
2025-03-20T10:10Z
EPSS history
Timeline
  • 20 MAR 10:10Z
    Case-Insensitive Path Matching in corydolphin/flask-cors
    cvelistv5