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, PYSEC-2026-1385
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: The source's own band: MODERATE
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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0