Improper Access Control in corydolphin/flask-cors
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-284.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| corydolphin | corydolphin/flask-cors | before 5.0.0 | 5.0.0 | Patch available | CNA |
| — | Flask-Cors (PyPI) | before 4.0.2 | 4.0.2 | Patch available | GHSA-hxwh-jpp2-84pm |
- corydolphin/flask-cors Vendorcorydolphin Affected before 5.0.0 Fixed in 5.0.0 Patch available CNA
- Flask-Cors (PyPI) Vendor— Affected before 4.0.2 Fixed in 4.0.2 Patch available GHSA-hxwh-jpp2-84pm
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:corydolphin:flask-cors:4.0.1:*:*:*:*:*:*:* | 4.0.1 | Vulnerable | corydolphin |
- cpe:2.3:a:corydolphin:flask-cors:4.0.1:*:*:*:*:*:*:* Versions 4.0.1 Vulnerable ·corydolphin
Remediation
- Fix · CNA corydolphin/flask-cors (corydolphin) Fixed in 5.0.0
- Fix · GHSA-hxwh-jpp2-84pm Flask-Cors (PyPI) Fixed in 4.0.2 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2024-6221
- 2026-10-03 Alias added: GHSA-hxwh-jpp2-84pm
References
Other 10
- https://github.com/corydolphin/flask-cors/commit/03aa3f8e2256437f7bad96422a747b98ab5e31bf
- https://github.com/corydolphin/flask-cors/issues/362
- https://github.com/corydolphin/flask-cors/pull/363
- https://github.com/corydolphin/flask-cors/pull/368
- https://github.com/corydolphin/flask-cors/commit/7ae310c56ac30e0b94fb42129aa377bf633256ec
- https://github.com/corydolphin/flask-cors/commit/c8514760cf03fcce16d77f6db7007aad429c4548
- https://github.com/corydolphin/flask-cors
- https://github.com/corydolphin/flask-cors/releases
- https://github.com/pypa/advisory-database/tree/main/vulns/flask-cors/PYSEC-2024-260.yaml
- https://github.com/pypa/advisory-database/tree/main/vulns/flask-cors/PYSEC-2024-71.yaml
More corydolphin Flask-cors vulnerabilities
- TI-2024-01562 Log Injection Vulnerability in corydolphin/flask-cors CVSS 3.1MEDIUM 5.3
Sources
- CVE-2024-6221 · CVE Program
- CVE-2024-6221 · NVD
- FIRST EPSS
- GHSA-hxwh-jpp2-84pm · GitHub Advisory Database · CC BY 4.0
- CVE-2024-6221 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences