{"cve":"CVE-2024-6839","nvd":{"published":"2025-03-20T10:15:33.743","modified":"2026-06-17T08:18:48.710","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3},"cwes":["CWE-41"],"references":["https://huntr.com/bounties/403eb1fc-86f4-4820-8eba-0f3dfae9f2b4","https://lists.debian.org/debian-lts-announce/2025/05/msg00049.html"],"products":["flask-cors_project:flask-cors"],"source":"nvd","synced_at":"2026-10-19T22:00:17.429720821+00:00"},"epss":{"cve":"CVE-2024-6839","score":0.0074,"percentile":0.54635,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-7rxf-gvfg-47g4","url":"https://osv.dev/vulnerability/GHSA-7rxf-gvfg-47g4","summary":"Flask-CORS improper regex path matching vulnerability","modified":"2026-09-10T03:49:48.444339292Z","packages":[{"ecosystem":"PyPI","name":"flask-cors","purl":"pkg:pypi/flask-cors","ranges":["<6.0.0"],"fixed":["6.0.0"]}]},{"id":"PYSEC-2026-1384","url":"https://osv.dev/vulnerability/PYSEC-2026-1384","summary":"Flask-CORS improper regex path matching vulnerability","modified":"2026-07-07T17:47:37.819558923Z","packages":[{"ecosystem":"PyPI","name":"flask-cors","purl":"pkg:pypi/flask-cors","ranges":["<6.0.0"],"fixed":["6.0.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}