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 package | Versions | Reported by |
|---|---|---|
| corydolphin corydolphin/flask-cors | from unspecified before 5.0.0 | CVE List |
| corydolphin flask-cors | from 4.0.1 before *, 4.0.1 | CVE List, NVD |
| flask-cors (PyPI) | before 4.0.2, up to 4.0.1 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| @huntr_ai | 6.5medium CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| PyPA Advisory Database | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Classification
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
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-6221 changed 2025-04-07 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-hxwh-jpp2-84pm changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2024-6221 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2024-260 changed 2026-07-09 | CC-BY-4.0 |
| PyPA Advisory Database | PYSEC-2024-71 changed 2026-07-09 | CC-BY-4.0 |