{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-6866","id":"CVE-2024-6866","title":"Case-Insensitive Path Matching in corydolphin/flask-cors","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 vulnerabilitie","descriptionLong":"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.","published":"2025-03-20T10:10:59.521Z","updated":"2026-10-28T02:30:25.674662344Z","reserved":"2024-07-17T21:09:41.423Z","status":"Modified","rejected":false,"assigner":"@huntr_ai","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"NVD"},{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","rating":"medium","source":"@huntr_ai"},{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","rating":"medium","source":"huntr.dev"},{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","rating":"medium","source":"OSV"},{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","rating":"medium","source":"GitHub"}],"rating":"high","products":["corydolphin/flask-cors"],"affectedProducts":[{"vendor":"corydolphin","product":"corydolphin/flask-cors","defaultStatus":null,"versions":[{"version":"unspecified","status":"affected","versionType":"custom","lessThanOrEqual":"latest"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"flask-cors","purl":"pkg:pypi/flask-cors","ranges":["<6.0.0"],"fixed":["6.0.0"],"advisory":"GHSA-43qf-4rqw-9q2g"}],"cwes":["CWE-178"],"aliases":["GHSA-43qf-4rqw-9q2g","PYSEC-2026-1383"],"references":[{"url":"https://huntr.com/bounties/808c11af-faee-43a8-824b-b5ab4f62b9e6","tags":["Exploit","Third Party Advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00049.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/6xxx/CVE-2024-6866.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6866","tags":["advisory"]},{"url":"https://github.com/corydolphin/flask-cors/commit/eb39516a3c96b90d0ae5f51293972395ec3ef358","tags":["web"]},{"url":"https://github.com/corydolphin/flask-cors","tags":["package"]},{"url":"https://github.com/corydolphin/flask-cors/blob/4.0.1/flask_cors/extension.py#L195","tags":["web"]},{"url":"https://pypi.org/project/flask-cors","tags":["package"]},{"url":"https://github.com/advisories/GHSA-43qf-4rqw-9q2g","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.0072,"epssPercentile":0.54702,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-6866","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6866","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-6866","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-43qf-4rqw-9q2g","ok":true,"note":"GHSA-43qf-4rqw-9q2g"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-6866","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["flask"],"critical":[],"attention":null}