# CVE-2024-6221: Improper Access Control in corydolphin/flask-cors

- Severity: Medium 6.5 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.72%, higher than 55% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-08-18T18:58:20.551Z
- Modified: 2026-09-10T03:50:18.161Z
- Also known as: GHSA-hxwh-jpp2-84pm, PYSEC-2024-71, PYSEC-2024-260
- Weaknesses: CWE-284
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: @huntr_ai

## Description

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.

(As written by CVE List.)

## Affected

- corydolphin corydolphin/flask-cors: from unspecified before 5.0.0
- corydolphin flask-cors: from 4.0.1 before *; 4.0.1
- flask-cors (PyPI): before 4.0.2; up to 4.0.1

## Every score

- @huntr_ai: 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`
- GitHub: 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`
- GitHub: CVSS:4.0 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`
- NVD: 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`
- PyPA Advisory Database: 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`

## References

- <https://huntr.com/bounties/a42935fc-6f57-4818-bca4-3d528235df4d> (exploit, evidence, third-party-advisory, web)
- <https://github.com/corydolphin/flask-cors/commit/03aa3f8e2256437f7bad96422a747b98ab5e31bf> (fix, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-6221> (advisory)
- <https://github.com/corydolphin/flask-cors/issues/362> (web)
- <https://github.com/corydolphin/flask-cors/pull/363> (web)
- <https://github.com/corydolphin/flask-cors/pull/368> (web)
- <https://github.com/corydolphin/flask-cors/commit/7ae310c56ac30e0b94fb42129aa377bf633256ec> (web)
- <https://github.com/corydolphin/flask-cors/commit/c8514760cf03fcce16d77f6db7007aad429c4548> (web)
- <https://github.com/corydolphin/flask-cors> (package)
- <https://github.com/corydolphin/flask-cors/releases> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/flask-cors/PYSEC-2024-260.yaml> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/flask-cors/PYSEC-2024-71.yaml> (web)
- <https://github.com/advisories/GHSA-hxwh-jpp2-84pm> (advisory)

## Sources

- CVE List: [CVE-2024-6221](https://www.cve.org/CVERecord?id=CVE-2024-6221), CVE Terms of Use, modified 2025-04-07
- GitHub Advisory Database: [GHSA-hxwh-jpp2-84pm](https://github.com/advisories/GHSA-hxwh-jpp2-84pm), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-6221](https://nvd.nist.gov/vuln/detail/CVE-2024-6221), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-260](https://osv.dev/vulnerability/PYSEC-2024-260), CC-BY-4.0, modified 2026-07-09
- PyPA Advisory Database: [PYSEC-2024-71](https://osv.dev/vulnerability/PYSEC-2024-71), CC-BY-4.0, modified 2026-07-09

---

Page: https://cve.day/CVE-2024-6221 · Whole record: https://cve.day/CVE-2024-6221.json · Rebuilt by cve.day 2026-11-25T22:58:44.520Z
