Vulnerabilities

CVE-2024-6839

Medium 5.3 CVSS 3.1

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.

Description as published by the source, in English.

Key facts

Published
2025-03-20
Last modified
2026-06-17
Assigned by
security@huntr.dev
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
0.7 % higher than 48 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Not registered in the sources

Affected products

Vendor Product Versions Status
flask-cors (PyPI) < 6.0.0 Affected
Flask-cors Project Flask-cors 4.0.1 Affected

Weakness type

  • CWE-41: Improper Resolution of Path Equivalence

    The product is vulnerable to file system contents disclosure through path equivalence. Path equivalence involves the use of special characters in file and directory names. The associated manipulations are intended to ge…

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities