ghsa-8vgw-p6qm-5gr7
Vulnerability from github
Published
2025-03-20 12:32
Modified
2025-03-21 22:10
Severity ?
Summary
Flask-CORS allows for inconsistent CORS matching
Details
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": [ { "package": { "ecosystem": "PyPI", "name": "flask-cors" }, "ranges": [ { "events": [ { "introduced": "0" }, { "last_affected": "4.0.1" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2024-6844" ], "database_specific": { "cwe_ids": [], "github_reviewed": true, "github_reviewed_at": "2025-03-21T22:10:24Z", "nvd_published_at": "2025-03-20T10:15:34Z", "severity": "MODERATE" }, "details": "A vulnerability in corydolphin/flask-cors version 4.0.1 allows for inconsistent CORS matching due to the handling of the \u0027+\u0027 character in URL paths. The request.path is passed through the unquote_plus function, which converts the \u0027+\u0027 character to a space \u0027 \u0027. 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.", "id": "GHSA-8vgw-p6qm-5gr7", "modified": "2025-03-21T22:10:24Z", "published": "2025-03-20T12:32:45Z", "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-6844" }, { "type": "PACKAGE", "url": "https://github.com/corydolphin/flask-cors" }, { "type": "WEB", "url": "https://github.com/corydolphin/flask-cors/blob/main/flask_cors/extension.py#L193" }, { "type": "WEB", "url": "https://huntr.com/bounties/731a6cd4-d05f-4fe6-8f5b-fe088d7b34e0" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N", "type": "CVSS_V3" } ], "summary": "Flask-CORS allows for inconsistent CORS matching" }
Loading...
Loading...
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.