{"id":"CVE-2024-6844","published":"2025-03-20T10:10:51Z","modified":"2025-11-03T19:34:40Z","title":"Inconsistent CORS Matching Due to Handling of '+' in URL Path in corydolphin/flask-cors","vendor":"corydolphin","product":"corydolphin/flask-cors","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00319,"percentile":0.25579,"provenance":"source"},"cwes":[{"id":"CWE-346","name":"Origin Validation Error"}],"references":[{"url":"https://huntr.com/bounties/731a6cd4-d05f-4fe6-8f5b-fe088d7b34e0","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00049.html","tags":[]}],"priority":{"score":8.8,"factors":[{"name":"EPSS percentile","points":5.12},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"corydolphin","affectedVersions":[{"vendor":"corydolphin","product":"corydolphin/flask-cors","versions":[">= unspecified, <= latest"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-03-20T14:26:13.854401Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"flask-cors","vulnerableRanges":["<6.0.0"],"patched":["6.0.0"],"from":["GHSA-8vgw-p6qm-5gr7","PYSEC-2026-1385"],"provenance":"source"}],"summary":{"text":"The flaw is in the path matching logic of corydolphin/flask-cors version 4.0.1, where request.path is passed through unquote_plus, converting '+' characters into spaces and causing endpoints to be matched against the wrong CORS settings. An attacker with network access can send crafted requests containing '+' in the URL path, without authentication or user interaction, to get unexpected CORS policy applied, which may allow unauthorized cross-origin access or cause valid requests to be blocked.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:10:41Z"},"euvd":{"id":"EUVD-2025-6972","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-corydolphin-flask-cors-cve-2020-25032","parents":[{"from":"CVE-2020-25032","to":"CVE-2024-6844","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["flask_cors/extension.py"],"commits":["https://github.com/corydolphin/flask-cors/commit/67c4b2cc98ae87cf1fa7df4f97fd81b40c79b895","https://github.com/corydolphin/flask-cors/commit/35d875319621bd129a38b2b823abf4a2f6cda536"],"basis":"shared function","functions":["cors_after_request"]}]}],"children":[{"from":"CVE-2024-6844","to":"CVE-2024-6866","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["flask_cors/extension.py"],"commits":["https://github.com/corydolphin/flask-cors/commit/35d875319621bd129a38b2b823abf4a2f6cda536","https://github.com/corydolphin/flask-cors/commit/eb39516a3c96b90d0ae5f51293972395ec3ef358"],"basis":"shared function","functions":["cors_after_request"]}]}]}}