Security mailing lists by PureSourceCode

CVE-2024-6839

MEDIUM 5.3CVSS 3.1

Flask-CORS improper regex path matching vulnerability

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.

Published
20 Mar 2025
Last modified
10 Sep 2026
Assigned by
security@huntr.dev
NVD status
Modified
Weakness
CWE-41
Also known as
GHSA-7rxf-gvfg-47g4PYSEC-2026-1384
Sources
NVDJSONOSV GHSA-7rxf-gvfg-47g4JSONOSV PYSEC-2026-1384JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
NVD security@huntr.dev (Secondary) CVSS 3.0 MEDIUM 4.3 CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
OSV GitHub CVSS 3.0 MEDIUM 4.3 CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
OSV PyPA CVSS 3.0 MEDIUM 4.3 CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD flask-cors_project flask-cors
cpe:2.3:a:flask-cors_project:flask-cors:4.0.1:*:*:*:*:*:*:*
= 4.0.1
OSV PyPI flask-cors < 6.0.0 6.0.0

References

History

  • 25 Nov 2026 20:57 UTC · NVD: first stored (published 20 Mar 2025)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 20 Mar 2025)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.