{"id":"CVE-2024-6221","aliases":["CVE-2024-6221","GHSA-hxwh-jpp2-84pm","PYSEC-2024-71","PYSEC-2024-260"],"related":[],"kind":"vulnerability","state":"published","title":"Improper Access Control in corydolphin/flask-cors","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Una vulnerabilidad en corydolphin/flask-cors versión 4.0.1 permite que el encabezado CORS `Access-Control-Allow-Private-Network` se establezca en verdadero de forma predeterminada, sin ninguna opción de configuración. Este comportamiento puede exponer los recursos de la red privada a un acceso externo no autorizado, lo que genera importantes riesgos de seguridad, como violaciones de datos, acceso no autorizado a información confidencial y posibles intrusiones en la red.","source":"nvd"},{"lang":"en","text":"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.","format":"markdown","source":"pysec"},{"lang":"en","text":"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.","format":"markdown","source":"pysec"}],"published":"2024-08-18T18:58:20.551Z","modified":"2026-09-10T03:50:18.161Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-284"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"5.0.0","status":"affected"}],"vendor":"corydolphin","product":"corydolphin/flask-cors","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"4.0.1","fixed":"*","status":"affected"}],"vendor":"corydolphin","product":"flask-cors","cpe":"cpe:2.3:a:corydolphin:flask-cors:4.0.1:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.0.2"}],"ecosystem":"PyPI","package":"flask-cors","purl":"pkg:pypi/flask-cors","source":"ghsa"},{"ranges":[{"status":"affected","version":"4.0.1"}],"vendor":"corydolphin","product":"flask-cors","cpe":"cpe:2.3:a:corydolphin:flask-cors:4.0.1:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"4.0.1"}],"ecosystem":"PyPI","package":"flask-cors","purl":"pkg:pypi/flask-cors","source":"pysec"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.0.2"}],"ecosystem":"PyPI","package":"flask-cors","purl":"pkg:pypi/flask-cors","source":"pysec"}],"references":[{"url":"https://huntr.com/bounties/a42935fc-6f57-4818-bca4-3d528235df4d","tags":["evidence","exploit","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/corydolphin/flask-cors/commit/03aa3f8e2256437f7bad96422a747b98ab5e31bf","tags":["fix","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6221","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/corydolphin/flask-cors/issues/362","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/corydolphin/flask-cors/pull/363","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/corydolphin/flask-cors/pull/368","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/corydolphin/flask-cors/commit/7ae310c56ac30e0b94fb42129aa377bf633256ec","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/corydolphin/flask-cors/commit/c8514760cf03fcce16d77f6db7007aad429c4548","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/corydolphin/flask-cors","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/corydolphin/flask-cors/releases","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/flask-cors/PYSEC-2024-260.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/flask-cors/PYSEC-2024-71.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-hxwh-jpp2-84pm","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-08-19T13:46:09.049Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-6221","url":"https://www.cve.org/CVERecord?id=CVE-2024-6221","licence":"CVE Terms of Use","modified":"2025-04-07T15:03:37.262Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hxwh-jpp2-84pm","url":"https://github.com/advisories/GHSA-hxwh-jpp2-84pm","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:18.161Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-6221","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6221","licence":"Public domain","modified":"2026-06-17T08:17:32.650Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2024-260","url":"https://osv.dev/vulnerability/PYSEC-2024-260","licence":"CC-BY-4.0","modified":"2026-07-09T16:45:06.434Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2024-71","url":"https://osv.dev/vulnerability/PYSEC-2024-71","licence":"CC-BY-4.0","modified":"2026-07-09T16:56:25.795Z"}],"updatedAt":"2026-11-25T22:58:44.520Z","epss":{"score":0.00718,"percentile":0.5508,"date":"2026-12-01T12:00:22.000Z"}}