CVE-2024-6839

Medium

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.

SeverityMedium
CVSS5.3
Exploit probability—
ProductFlask-cors
PublishedMar 20, 2025
First seenMar 20, 2025
Weakness typeCWE-41CWE-41

How to fix

Update
  • flask-cors6.0.0 or later

Affected products

ProductAffected versionsFixed in
flask-cors_project flask-cors4.0.1—
flask-corsPyPIv < 6.0.06.0.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2024-6839 · Flask-cors · Dark Radar