logo

CVE-2024-6839 flask-cors

Package

Manager: pip
Name: flask-cors
Vulnerable Version: >=0 <6.0.0

Severity

Level: Medium

CVSS v3.1: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

EPSS: 0.00124 pctl0.32395

Details

Flask-CORS improper regex path matching vulnerability corydolphin/flask-cors version 5.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.

Metadata

Created: 2025-03-20T12:32:45Z
Modified: 2025-05-17T18:57:12Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/03/GHSA-7rxf-gvfg-47g4/GHSA-7rxf-gvfg-47g4.json
CWE IDs: ["CWE-41"]
Alternative ID: GHSA-7rxf-gvfg-47g4
Finding: F313
Auto approve: 1