{"id":"CVE-2024-6839","published":"2025-03-20T10:09:42Z","modified":"2025-11-03T19:34:39Z","title":"Improper Regex Path Matching in corydolphin/flask-cors","vendor":"corydolphin","product":"corydolphin/flask-cors","tier":"tail","description":{"text":"corydolphin/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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0074,"percentile":0.55532,"provenance":"source"},"cwes":[{"id":"CWE-41","name":"Improper Resolution of Path Equivalence"}],"references":[{"url":"https://huntr.com/bounties/403eb1fc-86f4-4820-8eba-0f3dfae9f2b4","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00049.html","tags":[]}],"priority":{"score":14.1,"factors":[{"name":"EPSS percentile","points":11.11},{"name":"CVSS severity","points":3.01}]},"vendorSlug":"corydolphin","affectedVersions":[{"vendor":"corydolphin","product":"corydolphin/flask-cors","versions":[">= unspecified, <= latest"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-03-20T17:50:23.065543Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"flask-cors","vulnerableRanges":["<6.0.0"],"patched":["6.0.0"],"from":["GHSA-7rxf-gvfg-47g4","PYSEC-2026-1384"],"provenance":"source"}],"summary":{"text":"The flaw is an improper regex path matching issue in the corydolphin/flask-cors component of corydolphin/flask-cors version 4.0.1, where longer regex patterns take priority over more specific ones when matching paths. An attacker can exploit this over the network without authentication, but needs a victim user to interact (for example by visiting a malicious page) so that cross-origin requests reach sensitive endpoints under a less restrictive CORS policy, potentially exposing confidential data or functionality.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:42:58Z"},"euvd":{"id":"EUVD-2025-6973","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-corydolphin-flask-cors-cve-2020-25032","parents":[{"from":"CVE-2024-6221","to":"CVE-2024-6839","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["flask_cors/core.py"],"commits":["https://github.com/corydolphin/flask-cors/commit/03aa3f8e2256437f7bad96422a747b98ab5e31bf","https://github.com/corydolphin/flask-cors/commit/7ae310c56ac30e0b94fb42129aa377bf633256ec","https://github.com/corydolphin/flask-cors/commit/e970988bea563e05e8b8f53fa7bcc134b5bf5c5f"],"basis":"rarely changed file"}]}],"children":[{"from":"CVE-2024-6839","to":"CVE-2024-6866","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["flask_cors/core.py"],"commits":["https://github.com/corydolphin/flask-cors/commit/e970988bea563e05e8b8f53fa7bcc134b5bf5c5f","https://github.com/corydolphin/flask-cors/commit/eb39516a3c96b90d0ae5f51293972395ec3ef358"],"basis":"rarely changed file"}]}]}}