ghsa-7rxf-gvfg-47g4
Vulnerability from github
Published
2025-03-20 12:32
Modified
2025-03-22 00:06
Severity ?
Summary
Flask-CORS improper regex path matching vulnerability
Details
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": [ { "package": { "ecosystem": "PyPI", "name": "flask-cors" }, "ranges": [ { "events": [ { "introduced": "0" }, { "last_affected": "4.0.1" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2024-6839" ], "database_specific": { "cwe_ids": [ "CWE-41" ], "github_reviewed": true, "github_reviewed_at": "2025-03-22T00:06:34Z", "nvd_published_at": "2025-03-20T10:15:33Z", "severity": "MODERATE" }, "details": "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.", "id": "GHSA-7rxf-gvfg-47g4", "modified": "2025-03-22T00:06:34Z", "published": "2025-03-20T12:32:45Z", "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-6839" }, { "type": "PACKAGE", "url": "https://github.com/corydolphin/flask-cors" }, { "type": "WEB", "url": "https://huntr.com/bounties/403eb1fc-86f4-4820-8eba-0f3dfae9f2b4" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N", "type": "CVSS_V3" } ], "summary": "Flask-CORS improper regex path matching vulnerability" }
Loading...
Loading...
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.