# CVE-2024-6866: Case-Insensitive Path Matching in corydolphin/flask-cors

- Severity: Medium 5.3 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.72%, higher than 55% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-03-20T10:10:59.521Z
- Modified: 2026-09-10T03:50:56.795Z
- Also known as: GHSA-43qf-4rqw-9q2g, PYSEC-2026-1383
- Weaknesses: CWE-178
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- corydolphin corydolphin/flask-cors: from unspecified up to latest
- flask-cors (PyPI): before 6.0.0
- flask-cors_project flask-cors: 4.0.1

## Every score

- @huntr_ai: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N`

## References

- <https://huntr.com/bounties/808c11af-faee-43a8-824b-b5ab4f62b9e6> (exploit, third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00049.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-6866> (advisory)
- <https://github.com/corydolphin/flask-cors/commit/eb39516a3c96b90d0ae5f51293972395ec3ef358> (web)
- <https://github.com/corydolphin/flask-cors> (package)
- <https://github.com/corydolphin/flask-cors/blob/4.0.1/flask_cors/extension.py#L195> (web)
- <https://pypi.org/project/flask-cors> (package)
- <https://github.com/advisories/GHSA-43qf-4rqw-9q2g> (advisory)

## Sources

- CVE List: [CVE-2024-6866](https://www.cve.org/CVERecord?id=CVE-2024-6866), CVE Terms of Use, modified 2025-11-03
- GitHub Advisory Database: [GHSA-43qf-4rqw-9q2g](https://github.com/advisories/GHSA-43qf-4rqw-9q2g), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-6866](https://nvd.nist.gov/vuln/detail/CVE-2024-6866), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1383](https://osv.dev/vulnerability/PYSEC-2026-1383), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-6866 · Whole record: https://cve.day/CVE-2024-6866.json · Rebuilt by cve.day 2026-11-25T22:58:52.376Z
