Every CVE Search/ Get API key

CVE-2024-6221

Improper Access Control in corydolphin/flask-cors

6.5 MediumFix available

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

0.72%Up 0.7 points since Aug 19, 2024
90%50%10%1%

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 MediumCVSS: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 MediumCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS 3.0
6.5 MediumCVSS: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 MediumCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS 3.0
6.5 MediumCVSS: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

Affected packages
PackageAffectedFixed
flask-cors
PyPI
before 4.0.2
4.0.2
python-flask-cors
Debian:13
before 5.0.0-1
5.0.0-1
python-flask-cors
Debian:14
before 5.0.0-1
5.0.0-1
flask-cors
PyPI
before 4.0.2, plus listed versions
0.0.0.dev30.0.0.dev41.01.11.1.1
Show 42 moreShow less
1.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-cors
Mageia:9
From an advisory covering 5 CVEs
before 3.0.10-1.1.mga9
3.0.10-1.1.mga9
python-Flask-Cors
openEuler:24.03-LTS
before 5.0.0-1.oe2403
5.0.0-1.oe2403
rootio-flask-cors
Root:PyPI
before 3.0.10+root.io.1
3.0.10+root.io.13.0.10+root.io.2
python-flask-cors
Ubuntu: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-cors
Ubuntu:22.04:LTS
before 3.0.9-2ubuntu0.1, plus listed versions
3.0.9-2
3.0.9-2ubuntu0.1
python-flask-cors
Ubuntu: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-cors
Ubuntu: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-cors
Ubuntu: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-cors
Ubuntu: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

History
RecordedChangedSources
affected, facts
affected
first indexedCVE 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

Show 19 moreShow less
MoveEnter Open