Skip to content
OpenAdvisories
Medium · 5.3 CVE-2024-6844 EUVD-2025-6972GHSA-8vgw-p6qm-5gr7PYSEC-2026-1385

Inconsistent CORS Matching Due to Handling of '+' in URL Path in corydolphin/flask-cors

Published Mar 20, 2025 · Updated Nov 3, 2025 · 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.

Affected products

VendorProductAffectedFixed
corydolphin corydolphin/flask-cors unspecified – ≤ latest —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-flask-cors 6.0.0-1 —
Debian 13 python-flask-cors 6.0.0-1 —
Debian 12 python-flask-cors 3.0.10-2+deb12u1 —
Debian 11 python-flask-cors 3.0.9-2+deb11u1 DLA-4197-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS python-flask-cors 3.0.9-2ubuntu0.1 USN-7612-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS python-flask-cors 4.0.0-1ubuntu0.1~esm1 USN-7612-1
Ubuntu Pro 20.04 LTS python-flask-cors 3.0.8-2ubuntu0.1+esm1 USN-7612-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-Flask-Cors 6.0.2-1.1 openSUSE-SU-2026:10485-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling kubeflow-jupyter-web-app 1.10.0-r3 —
Wolfi rolling kubeflow-volumes-web-app 1.10.0-r2 —
Wolfi rolling superset-6.0 6.0.0-r2 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI flask-cors < 6.0.0 6.0.0 GHSA-8vgw-p6qm-5gr7

Advisories 3

References