# CVE-2024-6844: Inconsistent CORS Matching Due to Handling of '+' in URL Path in corydolphin/flask-cors

- Severity: Medium 5.3 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 26% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-03-20T10:10:51.818Z
- Modified: 2026-09-10T03:50:23.027Z
- Also known as: GHSA-8vgw-p6qm-5gr7, PYSEC-2026-1385
- Weaknesses: CWE-346
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: @huntr_ai

## Description

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.

(As written by CVE List.)

## Affected

- corydolphin corydolphin/flask-cors: from unspecified up to latest
- flask-cors (PyPI): before 6.0.0
- flask-cors_project flask-cors: 4.0.1

## Every score

- @huntr_ai: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- PyPA Advisory Database: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://huntr.com/bounties/731a6cd4-d05f-4fe6-8f5b-fe088d7b34e0> (exploit, third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00049.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-6844> (advisory)
- <https://github.com/corydolphin/flask-cors/commit/35d875319621bd129a38b2b823abf4a2f6cda536> (web)
- <https://github.com/corydolphin/flask-cors> (package)
- <https://github.com/corydolphin/flask-cors/blob/main/flask_cors/extension.py#L193> (web)
- <https://pypi.org/project/flask-cors> (package)
- <https://github.com/advisories/GHSA-8vgw-p6qm-5gr7> (advisory)

## Sources

- CVE List: [CVE-2024-6844](https://www.cve.org/CVERecord?id=CVE-2024-6844), CVE Terms of Use, modified 2025-11-03
- GitHub Advisory Database: [GHSA-8vgw-p6qm-5gr7](https://github.com/advisories/GHSA-8vgw-p6qm-5gr7), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-6844](https://nvd.nist.gov/vuln/detail/CVE-2024-6844), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1385](https://osv.dev/vulnerability/PYSEC-2026-1385), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-6844 · Whole record: https://cve.day/CVE-2024-6844.json · Rebuilt by cve.day 2026-11-25T22:58:52.375Z
