Live threats

All CVEs / Flask-cors Project

CVE-2024-6844Flask-cors Project Flask-cors

Medium 5.3 No auth needed

Priority
47
CVSS 3.0
5.3
EPSS
0.3%
probability of exploitation in 30 days · percentile 15
Auth required
No
Published
Mar 20, 2025
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-346
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Flask-cors.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI flask-cors < 6.0.0 6.0.0 pip install "flask-cors>=6.0.0"
PyPI flask-cors < 6.0.0 6.0.0 pip install "flask-cors>=6.0.0"

Per OSV / GitHub Advisories (GHSA-8vgw-p6qm-5gr7, PYSEC-2026-1385). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
flask-cors_projectflask-cors4.0.1

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.