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.
| Score | Percentile |
|---|---|
| 0.64% | 70.52% |
| Base score | Version | Severity | Vector |
|---|---|---|---|
| 7.5 | 3.1 | — |
|
| 8.7 | 4.0 | — |
|
| Type | Value |
|---|---|
| GHSA | GHSA-hxwh-jpp2-84pm ↗ |
| CVE | CVE-2024-6221 ↗ |
| CWE id | Name |
|---|---|
| CWE-284 | Improper Access Control |
Vulnerable version ranges and first patched releases as published by GitHub.
| Ecosystem | Package | Vulnerable range | First patched | Vulnerable functions |
|---|---|---|---|---|
| pip | Flask-Cors | < 4.0.2 | 4.0.2 | — |