CVE-2024-6839: Flask-CORS improper regex path matching vulnerability
Affects flask-corsSource GCVE Database
Not known to be exploited · CVSS 4.3 Medium : upgrade to 6.0.0 when convenient.
Data as of 29 Oct 2026, 22:52 UTC
Thin evidence
One scorer or none| CNA (@huntr_ai) | CVSS 3.0 | 4.3 |
|---|
- Patch
- Available – fixed in 6.0.0
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 3 Nov 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
Upgrade flask-cors to 6.0.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPIflask-cors | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
corydolphin/flask-cors version 5.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.
References
- nvd.nist.gov/vuln/detail/CVE-2024-6839 (opens in a new tab)
- github.com/corydolphin/flask-cors/commit/e970988bea563e05e8b8f53fa7bcc134b5bf5c5f (opens in a new tab)
- github.com/corydolphin/flask-cors (opens in a new tab)
- github.com/corydolphin/flask-cors/blob/4.0.1/flask_cors/core.py (opens in a new tab)
- huntr.com/bounties/403eb1fc-86f4-4820-8eba-0f3dfae9f2b4 (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/05/msg00049.html (opens in a new tab)