# CVE-2024-6839: Improper Regex Path Matching in corydolphin/flask-cors

- Severity: Medium 4.3 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.74%, higher than 55% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-03-20T10:09:42.595Z
- Modified: 2026-09-10T03:49:48.444Z
- Also known as: GHSA-7rxf-gvfg-47g4, PYSEC-2026-1384
- Weaknesses: CWE-41
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- corydolphin corydolphin/flask-cors: from unspecified up to latest
- flask-cors (PyPI): before 6.0.0
- flask-cors_project flask-cors: 4.0.1

## Every score

- @huntr_ai: CVSS:3.0 4.3 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.0 4.3 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- PyPA Advisory Database: CVSS:3.0 4.3 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N`

## References

- <https://huntr.com/bounties/403eb1fc-86f4-4820-8eba-0f3dfae9f2b4> (exploit, third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00049.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-6839> (advisory)
- <https://github.com/corydolphin/flask-cors/commit/e970988bea563e05e8b8f53fa7bcc134b5bf5c5f> (web)
- <https://github.com/corydolphin/flask-cors> (package)
- <https://github.com/corydolphin/flask-cors/blob/4.0.1/flask_cors/core.py#L73> (web)
- <https://pypi.org/project/flask-cors> (package)
- <https://github.com/advisories/GHSA-7rxf-gvfg-47g4> (advisory)

## Sources

- CVE List: [CVE-2024-6839](https://www.cve.org/CVERecord?id=CVE-2024-6839), CVE Terms of Use, modified 2025-11-03
- GitHub Advisory Database: [GHSA-7rxf-gvfg-47g4](https://github.com/advisories/GHSA-7rxf-gvfg-47g4), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-6839](https://nvd.nist.gov/vuln/detail/CVE-2024-6839), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1384](https://osv.dev/vulnerability/PYSEC-2026-1384), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-6839 · Whole record: https://cve.day/CVE-2024-6839.json · Rebuilt by cve.day 2026-11-25T22:58:52.372Z
