CVE-2024-6839
Flask-CORS improper regex path matching vulnerability
4.3
MEDIUM
CVSS 3.1
EPSS 0.47%
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.
How to fix CVE-2024-6839
To remediate CVE-2024-6839, upgrade the affected package to a fixed version below.
- —upgrade to 3.0.9-2+deb11u1 or later
- —upgrade to 6.0.0 or later
Is CVE-2024-6839 being exploited?
Low — EPSS is 0.5%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- from 0, < 3.0.9-2+deb11u1
- from 0, < 6.0.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM4.3 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N |