OESA-2025-1938

Source
https://www.openeuler.org/en/security/security-bulletins/detail/?id=openEuler-SA-2025-1938
Import Source
https://repo.openeuler.org/security/data/osv/OESA-2025-1938.json
JSON Data
https://api.osv.dev/v1/vulns/OESA-2025-1938
Upstream
Published
2025-08-01T13:03:33Z
Modified
2025-09-03T06:31:18.669325Z
Summary
python-Flask-Cors security update
Details

A Flask extension for handling Cross Origin Resource Sharing (CORS), making cross-origin AJAX possible.

Security Fix(es):

corydolphin/flask-cors version 4.0.1 contains an improper regex path matching vulnerability. The plugin prioritizes longer regex patterns over more specific ones when matching paths, which can lead to less restrictive CORS policies being applied to sensitive endpoints. This mismatch in regex pattern priority allows unauthorized cross-origin access to sensitive data or functionality, potentially exposing confidential information and increasing the risk of unauthorized actions by malicious actors.(CVE-2024-6839)

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.(CVE-2024-6844)

corydolphin/flask-cors version 4.01 contains a vulnerability where the request path matching is case-insensitive due to the use of the try_match function, which is originally intended for matching hosts. This results in a mismatch because paths in URLs are case-sensitive, but the regex matching treats them as case-insensitive. This misconfiguration can lead to significant security vulnerabilities, allowing unauthorized origins to access paths meant to be restricted, resulting in data exposure and potential data leaks.(CVE-2024-6866)

Database specific
{
    "severity": "Medium"
}
References

Affected packages

openEuler:24.03-LTS / python-Flask-Cors

Package

Name
python-Flask-Cors
Purl
pkg:rpm/openEuler/python-Flask-Cors&distro=openEuler-24.03-LTS

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.0.1-1.oe2403

Ecosystem specific

{
    "src": [
        "python-Flask-Cors-6.0.1-1.oe2403.src.rpm"
    ],
    "noarch": [
        "python-Flask-Cors-help-6.0.1-1.oe2403.noarch.rpm",
        "python3-Flask-Cors-6.0.1-1.oe2403.noarch.rpm"
    ]
}