{"id":"CVE-2024-6866","aliases":["CLSA-2025-1759882315","CLSA-2026-1789123062","CLSA-2026-1789716215","DEBIAN-CVE-2024-6866","DLA-4197-1","EUVD-2025-6979","GHSA-43qf-4rqw-9q2g","MGASA-2025-0286","OESA-2025-1938","OESA-2025-1939","OESA-2025-1981","PYSEC-2026-1383","ROOT-APP-PYPI-CVE-2024-6866","UBUNTU-CVE-2024-6866","USN-7612-1","openSUSE-SU-2026:10485-1"],"status":"published","title":"Case-Insensitive Path Matching in corydolphin/flask-cors","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.","severity":{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.0072,"percentile":0.54201,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-178"],"published":"2025-03-20T10:10:59Z","modified":"2026-11-02T12:03:15Z","fixes":[{"ecosystem":"PyPI","package":"flask-cors","fixed_in":["6.0.0"],"sources":["ghsa","osv"]},{"ecosystem":"TuxCare:PyPI","package":"flask-cors","fixed_in":["4.0.2.post1+tuxcare"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"python-flask-cors","fixed_in":["3.0.10-2+deb12u1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"python-flask-cors","fixed_in":["6.0.0-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"python-flask-cors","fixed_in":["6.0.0-1"],"sources":["osv"]},{"ecosystem":"Root:PyPI","package":"rootio-flask-cors","fixed_in":["3.0.10+root.io.1","3.0.10+root.io.2"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:20.04:LTS","package":"python-flask-cors","fixed_in":["3.0.8-2ubuntu0.1+esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:22.04:LTS","package":"python-flask-cors","fixed_in":["3.0.9-2ubuntu0.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:24.04:LTS","package":"python-flask-cors","fixed_in":["4.0.0-1ubuntu0.1~esm1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"flask-cors","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"5.0.1"},{"fixed":"6.0.0"}]}]},{"source":"osv","ecosystem":"TuxCare:PyPI","package":"flask-cors","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.2"},{"fixed":"4.0.2.post1+tuxcare"}]}],"versions":["4.0.2"]},{"source":"osv","ecosystem":"TuxCare:PyPI","package":"flask-cors","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.0.1"},{"fixed":"5.0.1.post1+tuxcare"}]}],"versions":["5.0.1"],"bundled":3},{"source":"osv","ecosystem":"TuxCare:PyPI","package":"flask-cors","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.10"},{"fixed":"3.0.10.post1+tuxcare"}]}],"versions":["3.0.10"],"bundled":4},{"source":"osv","ecosystem":"Debian:12","package":"python-flask-cors","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.10-2+deb12u1"}]}],"versions":["3.0.10-2"]},{"source":"osv","ecosystem":"Debian:13","package":"python-flask-cors","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.0-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"python-flask-cors","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.0-1"}]}]},{"source":"osv","ecosystem":"Debian:11","package":"python-flask-cors","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.9-2+deb11u1"}]}],"versions":["3.0.9-2"],"bundled":4},{"source":"osv","ecosystem":"PyPI","package":"flask-cors","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.0"}]}],"versions":["0.0.0.dev3","0.0.0.dev4","1.0","1.1","1.1.1","1.1.2","1.1.3","1.10.0","1.10.1","1.10.2","1.10.3","1.2.0","1.2.1","1.3.0","1.3.1","1.4.0","1.5.0","1.6.0","1.6.1","1.7.0","1.7.1","1.7.2","1.7.3","1.7.4","1.8.0","1.8.1","1.9.0","2.0.0","2.0.0rc1","2.0.1","2.1.0","2.1.1","2.1.2","2.1.3","3.0.0","3.0.1","3.0.10","3.0.2","3.0.3","3.0.4","3.0.6","3.0.7","3.0.8","3.0.9","4.0.0","4.0.0a0","4.0.1","4.0.2","5.0.0","5.0.1"]},{"source":"osv","ecosystem":"Mageia:9","package":"python-flask-cors","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.10-1.1.mga9"}]}],"bundled":5},{"source":"osv","ecosystem":"openEuler:24.03-LTS","package":"python-Flask-Cors","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.1-1.oe2403"}]}],"bundled":3},{"source":"osv","ecosystem":"openEuler:24.03-LTS-SP1","package":"python-Flask-Cors","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.1-1.oe2403sp1"}]}],"bundled":3},{"source":"osv","ecosystem":"openEuler:24.03-LTS-SP2","package":"python-Flask-Cors","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.1-1.oe2403sp2"}]}],"bundled":3},{"source":"osv","ecosystem":"PyPI","package":"flask-cors","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.0"}]}],"versions":["0.0.0.dev3","0.0.0.dev4","1.0","1.1","1.1.1","1.1.2","1.1.3","1.10.0","1.10.1","1.10.2","1.10.3","1.2.0","1.2.1","1.3.0","1.3.1","1.4.0","1.5.0","1.6.0","1.6.1","1.7.0","1.7.1","1.7.2","1.7.3","1.7.4","1.8.0","1.8.1","1.9.0","2.0.0","2.0.0rc1","2.0.1","2.1.0","2.1.1","2.1.2","2.1.3","3.0.0","3.0.1","3.0.10","3.0.2","3.0.3","3.0.4","3.0.6","3.0.7","3.0.8","3.0.9","4.0.0","4.0.0a0","4.0.1","4.0.2","5.0.0","5.0.1"]},{"source":"osv","ecosystem":"Root:PyPI","package":"rootio-flask-cors","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.10+root.io.1"},{"fixed":"3.0.10+root.io.2"}]}]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"python-flask-cors","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.8-2ubuntu0.1+esm1"}]}],"versions":["3.0.8-2","3.0.8-2ubuntu0.1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"python-flask-cors","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.9-2ubuntu0.1"}]}],"versions":["3.0.9-2"]},{"source":"osv","ecosystem":"Ubuntu:Pro:24.04:LTS","package":"python-flask-cors","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.0.0-1ubuntu0.1~esm1"}]}],"versions":["4.0.0-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"python-flask-cors","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.8-2ubuntu0.1+esm1"}]}],"versions":["3.0.8-2","3.0.8-2ubuntu0.1"],"bundled":5},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"python-flask-cors","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.9-2ubuntu0.1"}]}],"versions":["3.0.9-2"],"bundled":5},{"source":"osv","ecosystem":"Ubuntu:Pro:24.04:LTS","package":"python-flask-cors","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.0.0-1ubuntu0.1~esm1"}]}],"versions":["4.0.0-1"],"bundled":5},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"python-Flask-Cors","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.2-1.1"}]}],"bundled":3}],"products":[{"vendor":"corydolphin","product":"corydolphin/flask-cors"},{"vendor":"flask-cors_project","product":"flask-cors"}],"references":[{"url":"https://huntr.com/bounties/808c11af-faee-43a8-824b-b5ab4f62b9e6","tags":["Exploit","Third Party Advisory","web","report"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00049.html","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6866","tags":["advisory"]},{"url":"https://github.com/corydolphin/flask-cors/blob/4.0.1/flask_cors/extension.py#L195","tags":["web"]},{"url":"https://github.com/corydolphin/flask-cors/commit/eb39516a3c96b90d0ae5f51293972395ec3ef358","tags":["web"]},{"url":"https://github.com/advisories/GHSA-43qf-4rqw-9q2g","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/6xxx/CVE-2024-6866.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-6866","tags":["advisory"]},{"url":"https://github.com/corydolphin/flask-cors","tags":["package"]},{"url":"https://advisories.mageia.org/MGASA-2025-0286.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=34424","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-7612-1","tags":["advisory"]},{"url":"https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2025-1938","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6839","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6844","tags":["advisory"]},{"url":"https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2025-1939","tags":["advisory"]},{"url":"https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2025-1981","tags":["advisory"]},{"url":"https://pypi.org/project/flask-cors","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2024-6866","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-6866","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2024-1681","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2024-6221","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2024-6839","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2024-6844","tags":["report"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2024-6839","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2024-6844","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2024-6866","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2024-6866","title":"Case-Insensitive Path Matching in corydolphin/flask-cors","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.","status":"published","published":"2025-03-20T10:10:59.521Z","modified":"2025-11-03T19:34:42.29Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","level":"medium","assessor":"cna"}],"cwes":["CWE-178"],"updated_at":"2026-11-02T14:34:11.638716Z"}],"euvd":[{"id":"EUVD-2025-6979","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.","status":"published","published":"2025-03-20T10:10:59Z","modified":"2025-11-03T19:34:42Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","level":"medium"}],"updated_at":"2026-11-02T19:49:33.639996Z"}],"ghsa":[{"id":"GHSA-43qf-4rqw-9q2g","title":"Flask-CORS vulnerable to Improper Handling of Case Sensitivity","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.","status":"published","published":"2025-03-20T12:32:45Z","modified":"2025-11-03T21:33:13Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","level":"medium"}],"cwes":["CWE-178"],"updated_at":"2026-11-02T14:39:04.350802Z"}],"nvd":[{"id":"CVE-2024-6866","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.","status":"published","published":"2025-03-20T10:15:34.62Z","modified":"2026-06-17T08:18:52.173Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"primary"},{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","level":"medium","assessor":"secondary"}],"cwes":["CWE-178"],"updated_at":"2026-11-02T14:10:45.815983Z"}],"osv":[{"id":"CVE-2024-6866","title":"Case-Insensitive Path Matching in corydolphin/flask-cors","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.","status":"published","published":"2025-03-20T10:10:59.521Z","modified":"2026-10-28T02:30:25.674662344Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","level":"medium"}],"cwes":["CWE-178"],"updated_at":"2026-11-02T15:44:45.405014Z"},{"id":"DEBIAN-CVE-2024-6866","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.","status":"published","published":"2025-03-20T10:15:34.62Z","modified":"2026-11-02T12:03:15.796704697Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"updated_at":"2026-11-02T15:45:44.747956Z"},{"id":"GHSA-43qf-4rqw-9q2g","title":"Flask-CORS vulnerable to Improper Handling of Case Sensitivity","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.","status":"published","published":"2025-03-20T12:32:45Z","modified":"2026-09-10T03:50:56.795708366Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","level":"medium"}],"cwes":["CWE-178"],"updated_at":"2026-11-02T15:46:36.434231Z"},{"id":"OESA-2025-1938","title":"python-Flask-Cors security update","description":"A Flask extension for handling Cross Origin Resource Sharing (CORS), making cross-origin AJAX possible.\r\n\r\nSecurity Fix(es):\n\ncorydolphin/flask-cors version 4.0.1 contains an improper regex path matching vulnerability. The plugin prioritizes longer regex patterns over more specific ones when matching paths, which can lead to less restrictive CORS policies being applied to sensitive endpoints. This mismatch in regex pattern priority allows unauthorized cross-origin access to sensitive data or functionality, potentially exposing confidential information and increasing the risk of unauthorized actions by malicious actors.(CVE-2024-6839)\n\nA vulnerability in corydolphin/flask-cors version 4.0.1 allows for inconsistent CORS matching due to the handling of the \u0026apos;+\u0026apos; character in URL paths. The request.path is passed through the unquote_plus function, which converts the \u0026apos;+\u0026apos; character to a space \u0026apos; \u0026apos;. This behavior leads to incorrect path normalization, causing potential mismatches in CORS configuration. As a result, endpoints may not be matched correctly to their CORS settings, leading to unexpected CORS policy application. This can cause unauthorized cross-origin access or block valid requests, creating security vulnerabilities and usability issues.(CVE-2024-6844)\n\ncorydolphin/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.(CVE-2024-6866)","status":"published","published":"2025-08-01T11:09:01Z","modified":"2026-08-18T01:18:56.428408489Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium"}],"updated_at":"2026-11-02T15:52:43.127925Z"},{"id":"OESA-2025-1939","title":"python-Flask-Cors security update","description":"A Flask extension for handling Cross Origin Resource Sharing (CORS), making cross-origin AJAX possible.\r\n\r\nSecurity Fix(es):\n\ncorydolphin/flask-cors version 4.0.1 contains an improper regex path matching vulnerability. The plugin prioritizes longer regex patterns over more specific ones when matching paths, which can lead to less restrictive CORS policies being applied to sensitive endpoints. This mismatch in regex pattern priority allows unauthorized cross-origin access to sensitive data or functionality, potentially exposing confidential information and increasing the risk of unauthorized actions by malicious actors.(CVE-2024-6839)\n\nA vulnerability in corydolphin/flask-cors version 4.0.1 allows for inconsistent CORS matching due to the handling of the \u0026apos;+\u0026apos; character in URL paths. The request.path is passed through the unquote_plus function, which converts the \u0026apos;+\u0026apos; character to a space \u0026apos; \u0026apos;. This behavior leads to incorrect path normalization, causing potential mismatches in CORS configuration. As a result, endpoints may not be matched correctly to their CORS settings, leading to unexpected CORS policy application. This can cause unauthorized cross-origin access or block valid requests, creating security vulnerabilities and usability issues.(CVE-2024-6844)\n\ncorydolphin/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.(CVE-2024-6866)","status":"published","published":"2025-08-01T11:09:01Z","modified":"2026-08-18T01:18:57.137585274Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium"}],"updated_at":"2026-11-02T15:52:43.127925Z"},{"id":"OESA-2025-1981","title":"python-Flask-Cors security update","description":"A Flask extension for handling Cross Origin Resource Sharing (CORS), making cross-origin AJAX possible.\r\n\r\nSecurity Fix(es):\n\ncorydolphin/flask-cors version 4.0.1 contains an improper regex path matching vulnerability. The plugin prioritizes longer regex patterns over more specific ones when matching paths, which can lead to less restrictive CORS policies being applied to sensitive endpoints. This mismatch in regex pattern priority allows unauthorized cross-origin access to sensitive data or functionality, potentially exposing confidential information and increasing the risk of unauthorized actions by malicious actors.(CVE-2024-6839)\n\nA vulnerability in corydolphin/flask-cors version 4.0.1 allows for inconsistent CORS matching due to the handling of the \u0026apos;+\u0026apos; character in URL paths. The request.path is passed through the unquote_plus function, which converts the \u0026apos;+\u0026apos; character to a space \u0026apos; \u0026apos;. This behavior leads to incorrect path normalization, causing potential mismatches in CORS configuration. As a result, endpoints may not be matched correctly to their CORS settings, leading to unexpected CORS policy application. This can cause unauthorized cross-origin access or block valid requests, creating security vulnerabilities and usability issues.(CVE-2024-6844)\n\ncorydolphin/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.(CVE-2024-6866)","status":"published","published":"2025-08-08T11:09:03Z","modified":"2026-08-18T01:18:55.924717851Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium"}],"updated_at":"2026-11-02T15:52:43.127925Z"},{"id":"PYSEC-2026-1383","title":"Flask-CORS vulnerable to Improper Handling of Case Sensitivity","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.","status":"published","published":"2026-07-07T14:34:54.132548Z","modified":"2026-07-07T17:47:37.813563918Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","level":"medium"}],"updated_at":"2026-11-02T15:52:54.622769Z"},{"id":"UBUNTU-CVE-2024-6866","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.","status":"published","published":"2025-03-20T10:15:00Z","modified":"2026-02-04T03:26:39.838108Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","level":"medium"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"updated_at":"2026-11-02T16:55:18.664792Z"},{"id":"CLSA-2025-1759882315","title":"TuxCare security update for flask-cors (1 CVE)","description":"TuxCare rebuilt flask-cors to address 1 CVE. Fixed in 4.0.2.post1+tuxcare.","status":"published","published":"2026-08-04T14:52:08Z","modified":"2026-10-15T09:48:00.627060051Z","updated_at":"2026-11-02T15:43:42.427288Z"},{"id":"CLSA-2026-1789123062","title":"TuxCare security update for flask-cors (3 CVEs)","description":"TuxCare rebuilt flask-cors to address 3 CVEs. Fixed in 5.0.1.post1+tuxcare.","status":"published","published":"2026-09-11T10:37:42Z","modified":"2026-10-15T09:48:01.309471897Z","updated_at":"2026-11-02T15:43:47.938828Z"},{"id":"CLSA-2026-1789716215","title":"TuxCare security update for flask-cors (4 CVEs)","description":"TuxCare rebuilt flask-cors to address 4 CVEs. Fixed in 3.0.10.post1+tuxcare.","status":"published","published":"2026-09-18T07:23:35Z","modified":"2026-10-15T09:48:01.951381832Z","updated_at":"2026-11-02T15:43:48.28229Z"},{"id":"DLA-4197-1","title":"python-flask-cors - security update","status":"published","published":"2025-05-31T00:00:00Z","modified":"2026-03-09T01:19:26.362496Z","updated_at":"2026-11-02T15:46:12.7027Z"},{"id":"MGASA-2025-0286","title":"Updated python-flask-cors packages fix security vulnerabilities","description":"Log Injection Vulnerability in corydolphin/flask-cors. (CVE-2024-1681)\nImproper Access Control in corydolphin/flask-cors. (CVE-2024-6221)\nImproper Regex Path Matching in corydolphin/flask-cors. (CVE-2024-6839)\nInconsistent CORS Matching Due to Handling of '+' in URL Path in\ncorydolphin/flask-cors. (CVE-2024-6844)\nCase-Insensitive Path Matching in corydolphin/flask-cors.\n(CVE-2024-6866)\n","status":"published","published":"2025-11-13T18:03:54Z","modified":"2026-04-16T04:41:29.923155019Z","updated_at":"2026-11-02T15:49:43.178336Z"},{"id":"openSUSE-SU-2026:10485-1","title":"python311-Flask-Cors-6.0.2-1.1 on GA media","description":"These are all security issues fixed in the python311-Flask-Cors-6.0.2-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2026-04-03T00:00:00Z","modified":"2026-04-04T07:30:12.654793Z","updated_at":"2026-11-02T16:58:38.415593Z"},{"id":"ROOT-APP-PYPI-CVE-2024-6866","title":"CVE-2024-6866 in rootio-flask-cors - Patched by Root","description":"Root has patched CVE-2024-6866 in the rootio-flask-cors package for Root:PyPI. Multiple fixed versions available.","status":"published","published":"2026-07-20T07:17:42Z","modified":"2026-07-20T13:15:12.518568409Z","updated_at":"2026-11-02T15:53:27.940619Z"},{"id":"USN-7612-1","title":"python-flask-cors vulnerabilities","description":"It was discovered that Flask-CORS did not correctly handle certain regular\nexpressions. A remote attacker could possibly use this issue to leak\nsensitive information or bypass authentication mechanisms. (CVE-2024-6839)\nIt was discovered that Flask-CORS allowed certain CORS headers to be\nenabled by default. A remote attacker could possibly use this issue to leak\nsensitive information. This issue only affected Ubuntu 20.04 LTS, Ubuntu\n22.04 LTS, Ubuntu 24.04 LTS and Ubuntu 24.10. (CVE-2024-6221)  It was\ndiscovered that Flask-CORS did not correctly handle case sensitivity when\nmatching paths. A remote attacker could possibly use this issue to leak\nsensitive information. (CVE-2024-6866)  It was discovered that Flask-CORS\ndid not correctly handle certain characters in URL paths. A remote attacker\ncould possibly use this issue to leak sensitive information or bypass\nauthentication mechanisms. (CVE-2024-6844)  Elias Hohl was discovered that\nFlask-CORS did not correctly sanitize log entries. A remote attacker could\npossibly use this issue to corrupt log files. This issue only affected\nUbuntu 20.04 LTS, Ubuntu 22.04 LTS and Ubuntu 24.04 LTS. (CVE-2024-1681)","status":"published","published":"2025-07-02T04:59:38Z","modified":"2026-04-27T18:08:36.001433Z","updated_at":"2026-11-02T16:58:19.988474Z"}]}}
