CVE-2024-6839: corydolphin/flask-cors · Improper Resolution of Path Equivalence
Affects corydolphin/flask-corsSource CVE Database V5
Not known to be exploited · CVSS 4.3 Medium.
Data as of 26 Oct 2026, 10:12 UTC
- EPSS
- 0.7% chance of exploitation in 30 days – higher than 54% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
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
Weaponised: 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 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubcorydolphin/flask-corspkg:github/corydolphin/flask-corsOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate CVE-2024-6839, European organizations should: 1) Immediately audit all flask-cors configurations focusing on regex path patterns to ensure that more specific patterns are prioritized correctly and no overly permissive patterns exist. 2) Where possible, replace regex-based path matching with explicit allowlists or exact path matching to avoid ambiguity. 3) Monitor cross-origin requests and CORS headers in production environments to detect anomalous or unauthorized access attempts. 4) Stay alert for official patches or updates from the corydolphin/flask-cors project and apply them promptly once available. 5) Educate developers on secure CORS configuration best practices, emphasizing the risks of improper regex prioritization. 6) Consider implementing additional application-layer access controls to sensitive endpoints beyond CORS policies. 7) Use web application firewalls (WAFs) to block suspicious cross-origin requests if feasible. These steps go beyond generic advice by focusing on regex pattern auditing and layered security controls specific to this vulnerability.
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.