Vulnerability · Published Mar 20, 2025 · Assigned by @huntr_ai
CVE-2024-6839Improper Regex Path Matching in corydolphin/flask-cors
Medium 4.3
In plain English
A medium-severity security flaw in corydolphin/flask-cors from corydolphin. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 55% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | python-flask-cors | 3.0.10-2+deb12u1 | DEBIAN-CVE-2024-6839 |
| Debian:13 | python-flask-cors | 6.0.1-1 | DEBIAN-CVE-2024-6839 |
| Debian:14 | python-flask-cors | 6.0.1-1 | DEBIAN-CVE-2024-6839 |
| PyPI | flask-cors | 6.0.0 | GHSA-7rxf-gvfg-47g4 |
| PyPI | flask-cors | 6.0.0 | PYSEC-2026-1384 |
| Ubuntu:22.04:LTS | python-flask-cors | 3.0.9-2ubuntu0.1 | USN-7612-1 |
| Ubuntu:22.04:LTS | python-flask-cors | 3.0.9-2ubuntu0.1 | UBUNTU-CVE-2024-6839 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| corydolphin | corydolphin/flask-cors | unspecified – through latest |
Weakness: CWE-41 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N