Advisory

GHSA-8vgw-p6qm-5gr7

Also known as: CVE-2024-6844, PYSEC-2026-1385

Summary

Flask-CORS allows for inconsistent CORS matching

Details

A vulnerability in corydolphin/flask-cors version 5.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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-03-20 12:32 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

flask-cors

PyPI · All systems

Affected

  • introduced 0, fixed 6.0.0 (ecosystem)

Fixed versions

6.0.0

Fix

  • Fixed version 6.0.0
    pip install --upgrade flask-cors==6.0.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences