Vulnerability · Published Mar 20, 2025 · Assigned by @huntr_ai

CVE-2024-6844Inconsistent CORS Matching Due to Handling of '+' in URL Path in corydolphin/flask-cors

Medium 5.3

In plain English

A medium-severity security flaw in corydolphin/flask-cors from corydolphin. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 25% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.0)5.3Medium
Exploit odds (30 days)0.3%top 75.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

A vulnerability in corydolphin/flask-cors version 4.0.1 allows for inconsistent CORS matching due to the handling of the '+' character in URL paths. The request.path is passed through the unquote_plus function, which converts the '+' character to a space ' '. This behavior leads to incorrect path normalization, causing potential mismatches in CORS configuration. As a result, endpoints may not be matched correctly to their CORS settings, leading to unexpected CORS policy application. This can cause unauthorized cross-origin access or block valid requests, creating security vulnerabilities and usability issues.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12python-flask-cors3.0.10-2+deb12u1DEBIAN-CVE-2024-6844
Debian:13python-flask-cors6.0.0-1DEBIAN-CVE-2024-6844
Debian:14python-flask-cors6.0.0-1DEBIAN-CVE-2024-6844
PyPIflask-cors6.0.0GHSA-8vgw-p6qm-5gr7
PyPIflask-cors6.0.0PYSEC-2026-1385
Ubuntu:22.04:LTSpython-flask-cors3.0.9-2ubuntu0.1USN-7612-1
Ubuntu:22.04:LTSpython-flask-cors3.0.9-2ubuntu0.1UBUNTU-CVE-2024-6844

Affected products (as reported)

VendorProductVersions
corydolphin corydolphin/flask-cors unspecified – through latest

Weakness: CWE-346 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

References