{"id":"CVE-2024-6221","published":"2024-08-18T18:58:20Z","modified":"2025-04-07T15:03:37Z","title":"Improper Access Control in corydolphin/flask-cors","vendor":"corydolphin","product":"corydolphin/flask-cors","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00718,"percentile":0.54772,"provenance":"source"},"cwes":[{"id":"CWE-284","name":"Improper Access Control"}],"references":[{"url":"https://huntr.com/bounties/a42935fc-6f57-4818-bca4-3d528235df4d","tags":[]},{"url":"https://github.com/corydolphin/flask-cors/commit/03aa3f8e2256437f7bad96422a747b98ab5e31bf","tags":[]}],"priority":{"score":15.5,"factors":[{"name":"EPSS percentile","points":10.95},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"corydolphin","affectedVersions":[{"vendor":"corydolphin","product":"corydolphin/flask-cors","versions":[">= unspecified, < 5.0.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-08-19T13:46:09.049560Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Flask-Cors","vulnerableRanges":["<4.0.2"],"patched":["4.0.2"],"from":["GHSA-hxwh-jpp2-84pm","PYSEC-2024-71"],"provenance":"source"}],"summary":{"text":"The flaw is in the corydolphin/flask-cors library, version 4.0.1, where the Access-Control-Allow-Private-Network CORS header is enabled to true by default. An attacker with network access can exploit this to reach private network resources from outside, requiring user interaction (such as a victim visiting a malicious page) but no authentication or special configuration.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:30:33Z"},"euvd":{"id":"EUVD-2024-0061","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-corydolphin-flask-cors-cve-2020-25032","children":[{"from":"CVE-2024-6221","to":"CVE-2024-6839","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["flask_cors/core.py"],"commits":["https://github.com/corydolphin/flask-cors/commit/03aa3f8e2256437f7bad96422a747b98ab5e31bf","https://github.com/corydolphin/flask-cors/commit/7ae310c56ac30e0b94fb42129aa377bf633256ec","https://github.com/corydolphin/flask-cors/commit/e970988bea563e05e8b8f53fa7bcc134b5bf5c5f"],"basis":"rarely changed file"}]},{"from":"CVE-2024-6221","to":"CVE-2024-6866","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["flask_cors/core.py","flask_cors/extension.py"],"commits":["https://github.com/corydolphin/flask-cors/commit/03aa3f8e2256437f7bad96422a747b98ab5e31bf","https://github.com/corydolphin/flask-cors/commit/7ae310c56ac30e0b94fb42129aa377bf633256ec","https://github.com/corydolphin/flask-cors/commit/eb39516a3c96b90d0ae5f51293972395ec3ef358"],"basis":"rarely changed file"}]}]}}