CVE-2024-6221
Improper Access Control in corydolphin/flask-cors
Reported by @huntr_ai · Published August 18, 2024
flask-cors is fixed in 4.0.2 and 4.0.1 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| flask-cors | PyPI | 4.0.2, 4.0.1 |
| kubeflow-volumes-web-app | Chainguard | 1.9.1-r0 |
| kubeflow-jupyter-web-app | Chainguard | 1.9.1-r0 |
| kubeflow-volumes-web-app | Wolfi | 1.9.1-r0 |
| py3-flask-cors | Chainguard | 4.0.2-r0 |
| kubeflow-jupyter-web-app | Wolfi | 1.9.1-r0 |
| py3-flask-cors | Wolfi | 4.0.2-r0 |
| corydolphin/flask-cors | corydolphin | 5.0.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| corydolphin | corydolphin/flask-cors | unspecified |
| corydolphin | flask-cors | 4.0.1 |
| chainguard | kubeflow-volumes-web-app | 0 |
| chainguard | kubeflow-jupyter-web-app | 0 |
| corydolphin | corydolphin/flask-cors | * |
| wolfi | kubeflow-volumes-web-app | 0 |
| chainguard | py3-flask-cors | 0 |
| wolfi | kubeflow-jupyter-web-app | 0 |
| wolfi | py3-flask-cors | 0 |
| PyPI | flask-cors | 0 |
Timeline
- Aug 18, 2024 CVE Published
- Aug 19, 2024 EPSS Score (30 in total, the first dated here)
- Oct 5, 2024 Coalition ESS Score (9 in total, the first dated here)
- Feb 4, 2026 CVE Updated
- Mar 9, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-6221
vulnetix vdb fixes CVE-2024-6221
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-6221/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-6221 advisory
- https://github.com/advisories/GHSA-hxwh-jpp2-84pm advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/flask-cors/PYSEC-2024-71.yaml advisory
- https://github.com/corydolphin/flask-cors/issues/362 url
- https://github.com/corydolphin/flask-cors/pull/363 patch
- https://github.com/corydolphin/flask-cors/pull/368 patch
- https://github.com/corydolphin/flask-cors/commit/c8514760cf03fcce16d77f6db7007aad429c4548 patch
- https://github.com/corydolphin/flask-cors/releases url
- https://github.com/corydolphin/flask-cors/commit/7ae310c56ac30e0b94fb42129aa377bf633256ec patch
- https://github.com/pypa/advisory-database/tree/main/vulns/flask-cors/PYSEC-2024-260.yaml advisory