CVE-2024-6839

Improper Regex Path Matching in corydolphin/flask-cors

Published Mar 20, 2025 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4197-1 python-flask-cors security update
EUVD EUVD EUVD-2025-6973 Flask-CORS improper regex path matching vulnerability
Github GHSA Github GHSA GHSA-7rxf-gvfg-47g4 Flask-CORS improper regex path matching vulnerability
Ubuntu USN Ubuntu USN USN-7612-1 Flask-CORS vulnerabilities
History
Type Values Removed Values Added
First Time appeared Flask-cors Project
Flask-cors Project flask-cors
CPEs cpe:2.3:a:flask-cors_project:flask-cors:4.0.1:*:*:*:*:*:*:*
Vendors & Products Flask-cors Project
Flask-cors Project flask-cors
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Improper Regex Path Matching in corydolphin/flask-cors
Weaknesses CWE-41
References
Metrics cvssV3_0

{'score': 4.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
@huntr_ai
Published
Updated
Nov 3, 2025, 7:34 PM
Reserved
Jul 17, 2024, 5:48 PM
Status
Modified
Published
Mar 20, 2025, 10:15 AM
Modified
Jun 17, 2026, 8:18 AM