CVE-2024-6839
Improper Regex Path Matching in corydolphin/flask-cors
Reported by @huntr_ai · Published March 20, 2025
flask-cors is fixed in 6.0.0 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| flask-cors | PyPI | 6.0.0 |
| kubeflow-jupyter-web-app | Wolfi | 1.10.0-r3 |
| kubeflow-volumes-web-app | Wolfi | 1.10.0-r2 |
| superset-6.0 | Chainguard | 6.0.0-r2 |
| kubeflow-jupyter-web-app | Chainguard | 1.10.0-r3 |
| superset-6.0 | Wolfi | 6.0.0-r2 |
| kubeflow-volumes-web-app | Chainguard | 1.10.0-r2 |
| corydolphin/flask-cors | corydolphin | latest |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| corydolphin | corydolphin/flask-cors | unspecified |
| wolfi | kubeflow-jupyter-web-app | 0 |
| wolfi | kubeflow-volumes-web-app | 0 |
| chainguard | superset-6.0 | 0 |
| chainguard | kubeflow-jupyter-web-app | 0 |
| PyPI | flask-cors | 0 |
| wolfi | superset-6.0 | 0 |
| corydolphin | corydolphin/flask-cors | * |
| chainguard | kubeflow-volumes-web-app | 0 |
Timeline
- Mar 20, 2025 CVE Published
- Mar 20, 2025 EPSS Score (30 in total, the first dated here)
- Mar 21, 2025 Coalition ESS Score (18 in total, the first dated here)
- Mar 9, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-6839
vulnetix vdb fixes CVE-2024-6839
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-6839/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-6839 advisory
- https://github.com/advisories/GHSA-7rxf-gvfg-47g4 advisory
- https://github.com/corydolphin/flask-cors/commit/e970988bea563e05e8b8f53fa7bcc134b5bf5c5f patch
- https://github.com/corydolphin/flask-cors url
- https://github.com/corydolphin/flask-cors/blob/4.0.1/flask_cors/core.py#L73 url
- https://lists.debian.org/debian-lts-announce/2025/05/msg00049.html url