CVE-2024-6866

Source
https://cve.org/CVERecord?id=CVE-2024-6866
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-6866.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-6866
Aliases
Downstream
Related
Published
2025-03-20T10:10:59.521Z
Modified
2026-07-11T03:55:32.469685727Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N CVSS Calculator
Summary
Case-Insensitive Path Matching in corydolphin/flask-cors
Details

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.

Database specific
{
    "cna_assigner": "@huntr_ai",
    "cwe_ids": [
        "CWE-178"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/6xxx/CVE-2024-6866.json"
}
References

Affected packages

Git / github.com/corydolphin/flask-cors

Affected ranges

Type
GIT
Repo
https://github.com/corydolphin/flask-cors
Events
Database specific
{
    "cpe": "cpe:2.3:a:flask-cors_project:flask-cors:4.0.1:*:*:*:*:*:*:*",
    "source": "CPE_STRING",
    "extracted_events": [
        {
            "introduced": "4.0.1"
        },
        {
            "last_affected": "4.0.1"
        }
    ]
}

Affected versions

4.*
4.0.1

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-6866.json"