Improper Handling of Case Sensitivity Affecting python-flask-cors package, versions <3.0.10-2+deb12u1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.69% (50th 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-DEBIAN12-PYTHONFLASKCORS-9509339
  • published22 Mar 2025
  • disclosed20 Mar 2025

Introduced: 20 Mar 2025

CVE-2024-6866  (opens in a new tab)
CWE-178  (opens in a new tab)

How to fix?

Upgrade Debian:12 python-flask-cors to version 3.0.10-2+deb12u1 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 Debian. See How to fix? for Debian:12 relevant fixed versions and status.

corydolphin/flask-cors version 4.01 contains a vulnerability where the request path matching is case-insensitive due to the use of the try_match function, which is originally intended for matching hosts. This results in a mismatch because paths in URLs are case-sensitive, but the regex matching treats them as case-insensitive. This misconfiguration can lead to significant security vulnerabilities, allowing unauthorized origins to access paths meant to be restricted, resulting in data exposure and potential data leaks.

CVSS Base Scores

version 3.1