CVE-2024-6221
Improper Access Control in corydolphin/flask-cors
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
6.5
Improper Access Control in corydolphin/flask-cors
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.
- Record
CVE-2024-6221- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Weakness
- CWE-284
- Updated
- 2026-11-02
EUVDEUVD-2024-0061
6.5
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.
- Record
EUVD-2024-0061- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-hxwh-jpp2-84pm
8.7
Flask-CORS allows the `Access-Control-Allow-Private-Network` CORS header to be set to true by default
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.
- Record
GHSA-hxwh-jpp2-84pm- CVSS 4.0
- 8.7 High
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 - CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-284
- Updated
- 2026-11-02
NVD
7.5
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.
- Record
CVE-2024-6221- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Weakness
- CWE-284
- Updated
- 2026-11-02
OSV
6.5
Improper Access Control in corydolphin/flask-cors
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.
- Record
CVE-2024-6221- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Weakness
- CWE-284
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2024-6221
7.5
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.
- Record
DEBIAN-CVE-2024-6221- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
Show 8 moreShow less
OSVGHSA-hxwh-jpp2-84pm
8.7
Flask-CORS allows the `Access-Control-Allow-Private-Network` CORS header to be set to true by default
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.
- Record
GHSA-hxwh-jpp2-84pm- CVSS 4.0
- 8.7 High
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 - CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-284
- Updated
- 2026-11-02
OSVOESA-2024-2198
7.5
python-Flask-Cors security update
A Flask extension for handling Cross Origin Resource Sharing (CORS), making cross-origin AJAX possible.
Security Fix(es):
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.(CVE-2024-6221)
- Record
OESA-2024-2198- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVPYSEC-2024-260
7.5
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.
- Record
PYSEC-2024-260- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVPYSEC-2024-71
7.5
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.
- Record
PYSEC-2024-71- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVUBUNTU-CVE-2024-6221
7.5
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.
- Record
UBUNTU-CVE-2024-6221- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVMGASA-2025-0286 No score
Updated python-flask-cors packages fix security vulnerabilities
Log Injection Vulnerability in corydolphin/flask-cors. (CVE-2024-1681) Improper Access Control in corydolphin/flask-cors. (CVE-2024-6221) Improper Regex Path Matching in corydolphin/flask-cors. (CVE-2024-6839) Inconsistent CORS Matching Due to Handling of '+' in URL Path in corydolphin/flask-cors. (CVE-2024-6844) Case-Insensitive Path Matching in corydolphin/flask-cors. (CVE-2024-6866)
- Record
MGASA-2025-0286- Updated
- 2026-11-02
OSVROOT-APP-PYPI-CVE-2024-6221 No score
CVE-2024-6221 in rootio-flask-cors - Patched by Root
Root has patched CVE-2024-6221 in the rootio-flask-cors package for Root:PyPI. Multiple fixed versions available.
- Record
ROOT-APP-PYPI-CVE-2024-6221- Updated
- 2026-11-02
OSVUSN-7612-1 No score
python-flask-cors vulnerabilities
It was discovered that Flask-CORS did not correctly handle certain regular expressions. A remote attacker could possibly use this issue to leak sensitive information or bypass authentication mechanisms. (CVE-2024-6839) It was discovered that Flask-CORS allowed certain CORS headers to be enabled by default. A remote attacker could possibly use this issue to leak sensitive information. This issue only affected Ubuntu 20.04 LTS, Ubuntu 22.04 LTS, Ubuntu 24.04 LTS and Ubuntu 24.10. (CVE-2024-6221) It was discovered that Flask-CORS did not correctly handle case sensitivity when matching paths. A remote attacker could possibly use this issue to leak sensitive information. (CVE-2024-6866) It was discovered that Flask-CORS did not correctly handle certain characters in URL paths. A remote attacker could possibly use this issue to leak sensitive information or bypass authentication mechanisms. (CVE-2024-6844) Elias Hohl was discovered that Flask-CORS did not correctly sanitize log entries. A remote attacker could possibly use this issue to corrupt log files. This issue only affected Ubuntu 20.04 LTS, Ubuntu 22.04 LTS and Ubuntu 24.04 LTS. (CVE-2024-1681)
- Record
USN-7612-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
flask-corsPyPI |
before 4.0.2 | 4.0.2 |
python-flask-corsDebian:13 |
before 5.0.0-1 | 5.0.0-1 |
python-flask-corsDebian:14 |
before 5.0.0-1 | 5.0.0-1 |
flask-corsPyPI |
before 4.0.2, plus listed versions 0.0.0.dev30.0.0.dev41.01.11.1.1 Show 42 moreShow less1.1.21.1.31.10.01.10.11.10.21.10.31.2.01.2.11.3.01.3.11.4.01.5.01.6.01.6.11.7.01.7.11.7.21.7.31.7.41.8.01.8.11.9.02.0.02.0.0rc12.0.12.1.02.1.12.1.22.1.33.0.03.0.13.0.103.0.23.0.33.0.43.0.63.0.73.0.83.0.94.0.04.0.0a04.0.1 |
4.0.2 |
python-flask-corsMageia:9 From an advisory covering 5 CVEs |
before 3.0.10-1.1.mga9 | 3.0.10-1.1.mga9 |
python-Flask-CorsopenEuler:24.03-LTS |
before 5.0.0-1.oe2403 | 5.0.0-1.oe2403 |
rootio-flask-corsRoot:PyPI |
before 3.0.10+root.io.1 | 3.0.10+root.io.13.0.10+root.io.2 |
python-flask-corsUbuntu:Pro:20.04:LTS |
before 3.0.8-2ubuntu0.1+esm1, plus listed versions 3.0.8-23.0.8-2ubuntu0.1 |
3.0.8-2ubuntu0.1+esm1 |
python-flask-corsUbuntu:22.04:LTS |
before 3.0.9-2ubuntu0.1, plus listed versions 3.0.9-2 |
3.0.9-2ubuntu0.1 |
python-flask-corsUbuntu:Pro:24.04:LTS |
before 4.0.0-1ubuntu0.1~esm1, plus listed versions 4.0.0-1 |
4.0.0-1ubuntu0.1~esm1 |
python-flask-corsUbuntu:Pro:20.04:LTS From an advisory covering 5 CVEs |
before 3.0.8-2ubuntu0.1+esm1, plus listed versions 3.0.8-23.0.8-2ubuntu0.1 |
3.0.8-2ubuntu0.1+esm1 |
python-flask-corsUbuntu:22.04:LTS From an advisory covering 5 CVEs |
before 3.0.9-2ubuntu0.1, plus listed versions 3.0.9-2 |
3.0.9-2ubuntu0.1 |
python-flask-corsUbuntu:Pro:24.04:LTS From an advisory covering 5 CVEs |
before 4.0.0-1ubuntu0.1~esm1, plus listed versions 4.0.0-1 |
4.0.0-1ubuntu0.1~esm1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| affected | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-6221 is a medium vulnerability (CVSS 6.5) in Corydolphin Corydolphin/flask-cors, published August 18, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.72%, the 54th percentile. Fixed in flask-cors 4.0.2.
References
huntr.com/bounties/a42935fc-6f57-4818-bca4-3d528235df4d
github.com/corydolphin/flask-cors/commit/03aa3f8e2256437f7bad96422a747b98ab5e31bf
nvd.nist.gov/vuln/detail/CVE-2024-6221
github.com/pypa/advisory-database/tree/main/vulns/flask-cors/PYSEC-2024-71.yaml
github.com/corydolphin/flask-cors/issues/362
github.com/corydolphin/flask-cors/pull/363
Show 19 moreShow less
github.com/corydolphin/flask-cors/pull/368
github.com/corydolphin/flask-cors/commit/c8514760cf03fcce16d77f6db7007aad429c4548
github.com/corydolphin/flask-cors/releases
github.com/corydolphin/flask-cors/commit/7ae310c56ac30e0b94fb42129aa377bf633256ec
github.com/pypa/advisory-database/tree/main/vulns/flask-cors/PYSEC-2024-260.yaml
github.com/advisories/GHSA-hxwh-jpp2-84pm
github.com/CVEProject/cvelistV5/tree/main/cves/2024/6xxx/CVE-2024-6221.json
security-tracker.debian.org/tracker/CVE-2024-6221
github.com/corydolphin/flask-cors
advisories.mageia.org/MGASA-2025-0286.html
bugs.mageia.org/show_bug.cgi?id=34424
ubuntu.com/security/notices/USN-7612-1
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2024-2198
ubuntu.com/security/CVE-2024-6221
cve.org/CVERecord?id=CVE-2024-6221
ubuntu.com/security/CVE-2024-1681
ubuntu.com/security/CVE-2024-6839
ubuntu.com/security/CVE-2024-6844
ubuntu.com/security/CVE-2024-6866