Inconsistent CORS Matching Due to Handling of '+' in URL Path in corydolphin/flask-cors
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-346.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| corydolphin | corydolphin/flask-cors | up to latest | — | No fix listed | CNA |
| — | flask-cors (PyPI) | before 6.0.0 | 6.0.0 | Patch available | GHSA-8vgw-p6qm-5gr7 |
- corydolphin/flask-cors Vendorcorydolphin Affected up to latest Fixed in — No fix listed CNA
- flask-cors (PyPI) Vendor— Affected before 6.0.0 Fixed in 6.0.0 Patch available GHSA-8vgw-p6qm-5gr7
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:flask-cors_project:flask-cors:4.0.1:*:*:*:*:*:*:* | 4.0.1 | Vulnerable | Flask-cors Project |
- cpe:2.3:a:flask-cors_project:flask-cors:4.0.1:*:*:*:*:*:*:* Versions 4.0.1 Vulnerable ·Flask-cors Project
Remediation
- Fix · GHSA-8vgw-p6qm-5gr7 flask-cors (PyPI) Fixed in 6.0.0 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2024-6844
- 2026-10-03 Alias added: GHSA-8vgw-p6qm-5gr7
References
More corydolphin vulnerabilities
- TI-2024-06367 Case-Insensitive Path Matching in corydolphin/flask-cors CVSS 3.1HIGH 7.5
- TI-2024-05769 Improper Access Control in corydolphin/flask-cors CVSS 3.1HIGH 7.5
- TI-2024-01562 Log Injection Vulnerability in corydolphin/flask-cors CVSS 3.1MEDIUM 5.3
- TI-2024-06341 Improper Regex Path Matching in corydolphin/flask-cors CVSS 3.1MEDIUM 5.3
Sources
- CVE-2024-6844 · CVE Program
- CVE-2024-6844 · NVD
- FIRST EPSS
- GHSA-8vgw-p6qm-5gr7 · GitHub Advisory Database · CC BY 4.0
- CVE-2024-6844 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences