CVE-2024-6866: Flask-CORS vulnerable to Improper Handling of Case Sensitivity
Affects flask-corsSource GCVE Database
Not known to be exploited · CVSS 5.3 Medium : upgrade to 6.0.0 when convenient.
Data as of 30 Oct 2026, 01:19 UTC
Thin evidence
One scorer or none| CNA (@huntr_ai) | CVSS 3.0 | 5.3 |
|---|
- Patch
- Available – fixed in 6.0.0
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 3 Nov 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
Upgrade flask-cors to 6.0.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPIflask-cors | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade flask-cors to version 6.0.0 or later, where the issue with case-insensitive path matching is fixed. Since a patch is available and the vulnerability is addressed in the fixed version, applying this official fix is the recommended remediation.
Description
Flask-CORS versions prior to 6.0.0 have a vulnerability where request path matching is incorrectly handled in a case-insensitive manner. This occurs because the `try_match` function, designed for host matching, is used for path matching, which should be case-sensitive. This flaw can allow unauthorized origins to access restricted paths, potentially exposing sensitive data. The issue is fixed in version 6.0.0.
References
- nvd.nist.gov/vuln/detail/CVE-2024-6866 (opens in a new tab)
- github.com/corydolphin/flask-cors/commit/eb39516a3c96b90d0ae5f51293972395ec3ef358 (opens in a new tab)
- github.com/corydolphin/flask-cors (opens in a new tab)
- github.com/corydolphin/flask-cors/blob/4.0.1/flask_cors/extension.py (opens in a new tab)
- huntr.com/bounties/808c11af-faee-43a8-824b-b5ab4f62b9e6 (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/05/msg00049.html (opens in a new tab)