Skip to main content
VulnerabilityPublished

CVE-2024-6866: corydolphin/flask-cors · Improper Handling of Case Sensitivity

Affects corydolphin/flask-corsSource CVE Database V5

0

Not known to be exploited · CVSS 5.3 Medium.

Data as of 26 Oct 2026, 14:05 UTC

CVSS 3.0 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.7% chance of exploitation in 30 days – higher than 53% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 3 Nov 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
GitHubcorydolphin/flask-corspkg:github/corydolphin/flask-corsOther threatsAffected
  • =4.01
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

  1. Upgrade to a patched version of corydolphin/flask-cors once available that correctly handles case sensitivity in path matching.
  2. In the interim, implement custom CORS middleware or logic that enforces strict, case-sensitive path matching to prevent unauthorized origin access.
  3. Review and audit all CORS configurations in web applications to ensure that path-based restrictions are correctly applied and tested for case sensitivity.
  4. Employ web application firewalls (WAFs) with rules to detect and block suspicious cross-origin requests that do not comply with expected path cases.
  5. Conduct penetration testing focused on CORS misconfigurations and path case sensitivity to identify potential exploit vectors.
  6. Educate developers and security teams on the importance of case sensitivity in URL handling and CORS policies.
  7. Monitor logs for unusual cross-origin requests that could indicate exploitation attempts.
  8. For critical applications, consider implementing additional authentication or authorization checks beyond CORS to protect sensitive endpoints.

Description

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

References

Community reviews

Loading reviews…