CVE-2024-6221
JSON

6.5medium

Improper Access Control in corydolphin/flask-cors

Severity
6.5medium CVSS:3.0 by @huntr_ai
Exploit likelihood
0.72% (higher than 55% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
@huntr_ai
Also known as
GHSA-hxwh-jpp2-84pmPYSEC-2024-71PYSEC-2024-260

Description

A vulnerability in corydolphin/flask-cors version 4.0.1 allows the `Access-Control-Allow-Private-Network` CORS header to be set to true by default. This behavior can expose private network resources to unauthorized external access, leading to significant security risks such as data breaches, unauthorized access to sensitive information, and potential network intrusions.

Affected

Product or packageVersionsReported by
corydolphin corydolphin/flask-corsfrom unspecified before 5.0.0CVE List
corydolphin flask-corsfrom 4.0.1 before *, 4.0.1CVE List, NVD
flask-cors (PyPI)before 4.0.2, up to 4.0.1GitHub Advisory Database, PyPA Advisory Database

All scores

@huntr_ai6.5medium CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
PyPA Advisory Database7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-284

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

A vulnerability in corydolphin/flask-cors version 4.0.1 allows the `Access-Control-Allow-Private-Network` CORS header to be set to true by default. This behavior can expose private network resources to unauthorized external access, leading to significant security risks such as data breaches, unauthorized access to sensitive information, and potential network intrusions.

GitHub Advisory Database

A vulnerability in corydolphin/flask-cors version 4.0.1 allows the Access-Control-Allow-Private-Network CORS header to be set to true by default, without any configuration option. This behavior can expose private network resources to unauthorized external access, leading to significant security risks such as data breaches, unauthorized access to sensitive information, and potential network intrusions.

NVD (es)

Una vulnerabilidad en corydolphin/flask-cors versión 4.0.1 permite que el encabezado CORS `Access-Control-Allow-Private-Network` se establezca en verdadero de forma predeterminada, sin ninguna opción de configuración. Este comportamiento puede exponer los recursos de la red privada a un acceso externo no autorizado, lo que genera importantes riesgos de seguridad, como violaciones de datos, acceso no autorizado a información confidencial y posibles intrusiones en la red.

PyPA Advisory Database

Withdrawn as duplicate of PYSEC-2024-71. A vulnerability in corydolphin/flask-cors version 4.0.1 allows the Access-Control-Allow-Private-Network CORS header to be set to true by default. This behavior can expose private network resources to unauthorized external access, leading to significant security risks such as data breaches, unauthorized access to sensitive information, and potential network intrusions.

PyPA Advisory Database

A vulnerability in corydolphin/flask-cors up to version 4.0.1 allows the Access-Control-Allow-Private-Network CORS header to be set to true by default, without any configuration option. This behavior can expose private network resources to unauthorized external access, leading to significant security risks such as data breaches, unauthorized access to sensitive information, and potential network intrusions.

References

https://huntr.com/bounties/a42935fc-6f57-4818-bca4-3d528235df4devidence, exploit, third-party-advisory, web
https://github.com/corydolphin/flask-cors/commit/03aa3f8e2256437f7bad96422a747b98ab5e31bffix, web
https://nvd.nist.gov/vuln/detail/CVE-2024-6221advisory
https://github.com/corydolphin/flask-cors/issues/362web
https://github.com/corydolphin/flask-cors/pull/363web
https://github.com/corydolphin/flask-cors/pull/368web
https://github.com/corydolphin/flask-cors/commit/7ae310c56ac30e0b94fb42129aa377bf633256ecweb
https://github.com/corydolphin/flask-cors/commit/c8514760cf03fcce16d77f6db7007aad429c4548web
https://github.com/corydolphin/flask-corspackage
https://github.com/corydolphin/flask-cors/releasesweb
https://github.com/pypa/advisory-database/tree/main/vulns/flask-cors/PYSEC-2024-260.yamlweb
https://github.com/pypa/advisory-database/tree/main/vulns/flask-cors/PYSEC-2024-71.yamlweb

Sources

SourceRecordLicence
CVE ListCVE-2024-6221 changed 2025-04-07CVE Terms of Use
GitHub Advisory DatabaseGHSA-hxwh-jpp2-84pm changed 2026-09-10CC-BY-4.0
NVDCVE-2024-6221 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2024-260 changed 2026-07-09CC-BY-4.0
PyPA Advisory DatabasePYSEC-2024-71 changed 2026-07-09CC-BY-4.0