{"id":"CVE-2024-6866","aliases":["CVE-2024-6866","GHSA-43qf-4rqw-9q2g","PYSEC-2026-1383"],"related":[],"kind":"vulnerability","state":"published","title":"Case-Insensitive Path Matching in corydolphin/flask-cors","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"La versión 4.01 de corydolphin/flask-cors contiene una vulnerabilidad donde la coincidencia de rutas de solicitud no distingue entre mayúsculas y minúsculas debido al uso de la función `try_match`, originalmente diseñada para la coincidencia de hosts. Esto genera una discrepancia, ya que las rutas en las URL distinguen entre mayúsculas y minúsculas, pero la coincidencia de expresiones regulares las trata como si no las tuvieran. Esta configuración incorrecta puede generar vulnerabilidades de seguridad importantes, permitiendo que orígenes no autorizados accedan a rutas que deberían estar restringidas, lo que resulta en la exposición y posibles fugas de datos.","source":"nvd"}],"published":"2025-03-20T10:10:59.521Z","modified":"2026-09-10T03:50:56.795Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-178"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"latest","status":"affected"}],"vendor":"corydolphin","product":"corydolphin/flask-cors","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.0.0"}],"ecosystem":"PyPI","package":"flask-cors","purl":"pkg:pypi/flask-cors","source":"ghsa"},{"ranges":[{"status":"affected","version":"4.0.1"}],"vendor":"flask-cors_project","product":"flask-cors","cpe":"cpe:2.3:a:flask-cors_project:flask-cors:4.0.1:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.0.0"}],"ecosystem":"PyPI","package":"flask-cors","purl":"pkg:pypi/flask-cors","source":"pysec"}],"references":[{"url":"https://huntr.com/bounties/808c11af-faee-43a8-824b-b5ab4f62b9e6","tags":["exploit","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00049.html","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6866","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/corydolphin/flask-cors/commit/eb39516a3c96b90d0ae5f51293972395ec3ef358","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/corydolphin/flask-cors","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/corydolphin/flask-cors/blob/4.0.1/flask_cors/extension.py#L195","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/flask-cors","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-43qf-4rqw-9q2g","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-03-20T17:47:43.885Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-6866","url":"https://www.cve.org/CVERecord?id=CVE-2024-6866","licence":"CVE Terms of Use","modified":"2025-11-03T19:34:42.290Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-43qf-4rqw-9q2g","url":"https://github.com/advisories/GHSA-43qf-4rqw-9q2g","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:56.795Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-6866","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6866","licence":"Public domain","modified":"2026-06-17T08:18:52.173Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1383","url":"https://osv.dev/vulnerability/PYSEC-2026-1383","licence":"CC-BY-4.0","modified":"2026-07-07T17:47:37.813Z"}],"updatedAt":"2026-11-25T22:58:52.376Z","epss":{"score":0.0072,"percentile":0.55146,"date":"2026-12-01T12:00:22.000Z"}}