CVE-2024-6221Corydolphin Flask-cors
High 7.5 No auth needed
Follow: this CVE · Corydolphin · Corydolphin Flask-cors We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.0% probability of exploitation in 30 days · percentile 61
- Auth required
- No
- Published
- Aug 18, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-284
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Flask-cors.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | flask-cors |
< 4.0.2 |
4.0.2 |
pip install "flask-cors>=4.0.2" |
| PyPI | flask-cors |
< 4.0.2 |
4.0.2 |
pip install "flask-cors>=4.0.2" |
Per OSV / GitHub Advisories (GHSA-hxwh-jpp2-84pm, PYSEC-2024-71). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| corydolphin | flask-cors | 4.0.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com
- huntr.com Exploit Third Party Advisory