{"id":"CVE-2024-6866","published":"2025-03-20T10:10:59Z","modified":"2025-11-03T19:34:42Z","title":"Case-Insensitive Path Matching in corydolphin/flask-cors","vendor":"corydolphin","product":"corydolphin/flask-cors","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0072,"percentile":0.54841,"provenance":"source"},"cwes":[{"id":"CWE-178","name":"Improper Handling of Case Sensitivity"}],"references":[{"url":"https://huntr.com/bounties/808c11af-faee-43a8-824b-b5ab4f62b9e6","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00049.html","tags":[]}],"priority":{"score":14.7,"factors":[{"name":"EPSS percentile","points":10.97},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"corydolphin","affectedVersions":[{"vendor":"corydolphin","product":"corydolphin/flask-cors","versions":[">= unspecified, <= latest"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-03-20T17:47:43.885682Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"flask-cors","vulnerableRanges":["<6.0.0"],"patched":["6.0.0"],"from":["GHSA-43qf-4rqw-9q2g","PYSEC-2026-1383"],"provenance":"source"}],"summary":{"text":"The flaw is in the path matching logic of corydolphin/flask-cors version 4.01, where the try_match function, originally intended for host matching, is also applied to request paths and matches them case-insensitively even though URL paths are case-sensitive. An attacker who can send network requests can exploit this by using an alternate-case path to reach resources the CORS configuration was meant to restrict, but exploitation requires high attack complexity and user interaction, such as a victim visiting a page from an unauthorized origin.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:37:40Z"},"euvd":{"id":"EUVD-2025-6979","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-corydolphin-flask-cors-cve-2020-25032","parents":[{"from":"CVE-2020-25032","to":"CVE-2024-6866","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["flask_cors/extension.py"],"commits":["https://github.com/corydolphin/flask-cors/commit/67c4b2cc98ae87cf1fa7df4f97fd81b40c79b895","https://github.com/corydolphin/flask-cors/commit/eb39516a3c96b90d0ae5f51293972395ec3ef358"],"basis":"shared function","functions":["cors_after_request"]}]},{"from":"CVE-2024-6221","to":"CVE-2024-6866","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["flask_cors/core.py","flask_cors/extension.py"],"commits":["https://github.com/corydolphin/flask-cors/commit/03aa3f8e2256437f7bad96422a747b98ab5e31bf","https://github.com/corydolphin/flask-cors/commit/7ae310c56ac30e0b94fb42129aa377bf633256ec","https://github.com/corydolphin/flask-cors/commit/eb39516a3c96b90d0ae5f51293972395ec3ef358"],"basis":"rarely changed file"}]},{"from":"CVE-2024-6839","to":"CVE-2024-6866","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["flask_cors/core.py"],"commits":["https://github.com/corydolphin/flask-cors/commit/e970988bea563e05e8b8f53fa7bcc134b5bf5c5f","https://github.com/corydolphin/flask-cors/commit/eb39516a3c96b90d0ae5f51293972395ec3ef358"],"basis":"rarely changed file"}]},{"from":"CVE-2024-6844","to":"CVE-2024-6866","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["flask_cors/extension.py"],"commits":["https://github.com/corydolphin/flask-cors/commit/35d875319621bd129a38b2b823abf4a2f6cda536","https://github.com/corydolphin/flask-cors/commit/eb39516a3c96b90d0ae5f51293972395ec3ef358"],"basis":"shared function","functions":["cors_after_request"]}]}]}}