Path Equivalence Affecting python-flask-cors package, versions <5.0.0-1ubuntu0.1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.05% (16th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2504-PYTHONFLASKCORS-9791800
  • published26 Jun 2025
  • disclosed20 Mar 2025

Introduced: 20 Mar 2025

CVE-2024-6839  (opens in a new tab)
CWE-41  (opens in a new tab)

How to fix?

Upgrade Ubuntu:25.04 python-flask-cors to version 5.0.0-1ubuntu0.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python-flask-cors package and not the python-flask-cors package as distributed by Ubuntu. See How to fix? for Ubuntu:25.04 relevant fixed versions and status.

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.