CVE-2024-6839
Improper Regex Path Matching in corydolphin/flask-cors
- State
- Published
- Severity
- 4.3 Medium
- Published
- Mar 20, 2025
- Updated
- Nov 3, 2025
- Reserved
- Jul 17, 2024
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.0 | 4.3 Medium | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N | @huntr_ai |
Weaknesses
- CWE-41 Improper Resolution of Path Equivalence
Affected Products
| Product | Versions |
|---|---|
corydolphin/flask-corscorydolphin |
|
References
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.