CVE-2024-6866: corydolphin/flask-cors · Improper Handling of Case Sensitivity
Affects corydolphin/flask-corsSource CVE Database V5
Not known to be exploited · CVSS 5.3 Medium.
Data as of 26 Oct 2026, 14:05 UTC
- EPSS
- 0.7% chance of exploitation in 30 days – higher than 53% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
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
Weaponised: 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 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubcorydolphin/flask-corspkg:github/corydolphin/flask-corsOther threats | 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 to a patched version of corydolphin/flask-cors once available that correctly handles case sensitivity in path matching.
- In the interim, implement custom CORS middleware or logic that enforces strict, case-sensitive path matching to prevent unauthorized origin access.
- Review and audit all CORS configurations in web applications to ensure that path-based restrictions are correctly applied and tested for case sensitivity.
- Employ web application firewalls (WAFs) with rules to detect and block suspicious cross-origin requests that do not comply with expected path cases.
- Conduct penetration testing focused on CORS misconfigurations and path case sensitivity to identify potential exploit vectors.
- Educate developers and security teams on the importance of case sensitivity in URL handling and CORS policies.
- Monitor logs for unusual cross-origin requests that could indicate exploitation attempts.
- For critical applications, consider implementing additional authentication or authorization checks beyond CORS to protect sensitive endpoints.
Description
corydolphin/flask-cors version 5.0.1 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.