flask-cors
Affected
- introduced
0, fixed6.0.0(ecosystem)
Fixed versions
6.0.0
Fix
- Fixed version
6.0.0pip install --upgrade flask-cors==6.0.0
Advisory
Also known as: CVE-2024-6844, GHSA-8vgw-p6qm-5gr7
Flask-CORS allows for inconsistent CORS matching
A vulnerability in corydolphin/flask-cors version 5.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.
Medium Basis: CVSS v3 score 5.3, vector CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
0, fixed 6.0.0 (ecosystem)6.0.0
6.0.0pip install --upgrade flask-cors==6.0.0Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: PyPA Advisory Database · CC BY 4.0