CVE-2024-6839Flask-cors Project Flask-cors
Medium 5.3 No auth needed
Follow: this CVE · Flask-cors Project · Flask-cors Project Flask-cors We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.3
- EPSS
- 0.7% probability of exploitation in 30 days · percentile 49
- Auth required
- No
- Published
- Mar 20, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-41
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Flask-cors.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | flask-cors |
< 6.0.0 |
6.0.0 |
pip install "flask-cors>=6.0.0" |
| PyPI | flask-cors |
< 6.0.0 |
6.0.0 |
pip install "flask-cors>=6.0.0" |
Per OSV / GitHub Advisories (GHSA-7rxf-gvfg-47g4, PYSEC-2026-1384). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| flask-cors_project | flask-cors | 4.0.1 |
Official advisories
- python311-Flask-Cors-6.0.2-1.1 on GA media · SUSE · openSUSE-SU-2026:10485-1 · Apr 3, 2026 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- huntr.com Exploit Third Party Advisory
- lists.debian.org