CVE-2024-6839
MEDIUM 5.3CVSS 3.1Flask-CORS improper regex path matching vulnerability
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.
- Published
- 20 Mar 2025
- Last modified
- 10 Sep 2026
- Assigned by
- security@huntr.dev
- NVD status
- Modified
- Weakness
- CWE-41
- Also known as
- GHSA-7rxf-gvfg-47g4PYSEC-2026-1384
- Sources
- NVDJSONOSV GHSA-7rxf-gvfg-47g4JSONOSV PYSEC-2026-1384JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | MEDIUM 4.3 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.0 | MEDIUM 4.3 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N |
| OSV | PyPA | CVSS 3.0 | MEDIUM 4.3 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | flask-cors_project | flask-corscpe:2.3:a:flask-cors_project:flask-cors:4.0.1:*:*:*:*:*:*:* |
= 4.0.1 | |
| OSV | PyPI | flask-cors | < 6.0.0 | 6.0.0 |
References
- https://huntr.com/bounties/403eb1fc-86f4-4820-8eba-0f3dfae9f2b4 · Exploit, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2025/05/msg00049.html · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-6839 · ADVISORY
- https://github.com/corydolphin/flask-cors/commit/e970988bea563e05e8b8f53fa7bcc134b5bf5c5f · WEB
- https://github.com/corydolphin/flask-cors · PACKAGE
- https://github.com/corydolphin/flask-cors/blob/4.0.1/flask_cors/core.py#L73 · WEB
- https://pypi.org/project/flask-cors · PACKAGE
- https://github.com/advisories/GHSA-7rxf-gvfg-47g4 · ADVISORY
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 20 Mar 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 20 Mar 2025)