Flask-CORS vulnerable to Improper Handling of Case Sensitivity
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.
Software afectado
Haz clic en una tecnología para ver todas sus vulnerabilidades.
| Plataforma | Paquete | Versiones vulnerables | Corregida en |
|---|---|---|---|
| Python (PyPI) | flask-cors | < 6.0.0 | 6.0.0 |
Referencias
- https://nvd.nist.gov/vuln/detail/CVE-2024-6866
- https://github.com/corydolphin/flask-cors/commit/eb39516a3c96b90d0ae5f51293972395ec3ef358
- https://github.com/corydolphin/flask-cors
- https://github.com/corydolphin/flask-cors/blob/4.0.1/flask_cors/extension.py#L195
- https://huntr.com/bounties/808c11af-faee-43a8-824b-b5ab4f62b9e6
- https://lists.debian.org/debian-lts-announce/2025/05/msg00049.html
- https://pypi.org/project/flask-cors
- https://github.com/advisories/GHSA-43qf-4rqw-9q2g
- Vector CVSS
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N- Debilidad (CWE)
CWE-178- Plataforma
- Python (PyPI)
- Paquete
flask-cors- Publicada
- 20.03.2025
- Actualizado
- 11.10.2026 15:17
Fuentes y licencias
OSV / GitHub Advisory Database - PYSEC-2026-1383 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-43qf-4rqw-9q2g - CC BY 4.0
Historial de vulnerabilidades: flask-cors
Todas las vulnerabilidades publicadas de este paquete (Python (PyPI)), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.
- Entradas en total
- 6
- Primera → última
- 08.2020 03.2025
- Sin corrección
- 0
- Explotada en ataques
- 0
Distribución por gravedad
- Alta 2
- Media 4
Divulgaciones por año
- 2020: 1
- 2021: 0
- 2022: 0
- 2023: 0
- 2024: 2
- 2025: 3
- 2026: 0
-
Flask-CORS vulnerable to Improper Handling of Case Sensitivity esta entrada
Identifica las vulnerabilidades de tu aplicación
Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.