CVE-2024-6844CWE-346

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

Medium · published March 20, 2025

CVSS v3.0
5.3
EPSS
0%
Percentile
23.7
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.0
5.3 · MEDIUM
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00319 · 23.7th percentile
Weakness
CWE-346 · Origin Validation Error
Published
2025-03-20T10:10Z
EPSS history
Timeline
  • 20 MAR 10:10Z
    Inconsistent CORS Matching Due to Handling of '+' in URL Path in corydolphin/flask-cors
    cvelistv5