CWE
178
Advisory Published
Advisory Published
Updated

CVE-2024-6866: Case-Insensitive Path Matching in corydolphin/flask-cors

First published: Thu Mar 20 2025(Updated: )

corydolphin/flask-cors version 4.0.1 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.

Credit: security@huntr.dev

Affected SoftwareAffected VersionHow to fix
Flask-CORS
pip/flask-cors<=4.0.1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2024-6866?

    CVE-2024-6866 has been assigned a medium severity rating due to the potential for path manipulation.

  • How do I fix CVE-2024-6866?

    To fix CVE-2024-6866, update the flask-cors package to a version where the request path matching is case-sensitive.

  • What software versions are affected by CVE-2024-6866?

    CVE-2024-6866 affects version 4.01 of the flask-cors library by corydolphin.

  • What types of attacks can exploit CVE-2024-6866?

    CVE-2024-6866 can potentially be exploited for path traversal or bypassing security controls due to improper case matching.

  • Has CVE-2024-6866 been reported in any public security advisories?

    Yes, CVE-2024-6866 is documented in public security advisories and vulnerability databases.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203