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.

Severity (CVSS 3.0)4.3Medium
Exploit odds (30 days)0.7%top 45.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12python-flask-cors3.0.10-2+deb12u1DEBIAN-CVE-2024-6839
Debian:13python-flask-cors6.0.1-1DEBIAN-CVE-2024-6839
Debian:14python-flask-cors6.0.1-1DEBIAN-CVE-2024-6839
PyPIflask-cors6.0.0GHSA-7rxf-gvfg-47g4
PyPIflask-cors6.0.0PYSEC-2026-1384
Ubuntu:22.04:LTSpython-flask-cors3.0.9-2ubuntu0.1USN-7612-1
Ubuntu:22.04:LTSpython-flask-cors3.0.9-2ubuntu0.1UBUNTU-CVE-2024-6839

Affected products (as reported)

VendorProductVersions
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

References