CVE-2024-6866
HIGH 7.5CVSS 3.1Flask-CORS vulnerable to Improper Handling of Case Sensitivity
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
- 20 Mar 2025
- Last modified
- 10 Sep 2026
- Assigned by
- security@huntr.dev
- NVD status
- Modified
- Weakness
- CWE-178
- Also known as
- GHSA-43qf-4rqw-9q2gPYSEC-2026-1383
- Sources
- NVDJSONOSV GHSA-43qf-4rqw-9q2gJSONOSV PYSEC-2026-1383JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | MEDIUM 5.3 | CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.0 | MEDIUM 5.3 | CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N |
| OSV | PyPA | CVSS 3.0 | MEDIUM 5.3 | CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | flask-cors_project | flask-corscpe:2.3:a:flask-cors_project:flask-cors:4.0.1:*:*:*:*:*:*:* |
= 4.0.1 | |
| OSV | PyPI | flask-cors | < 6.0.0 | 6.0.0 |
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
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 20 Mar 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 20 Mar 2025)