NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · PyPI

CVE-2024-6221: Flask-CORS allows the `Access-Control-Allow-Private-Network` CORS header to be set to true by default

highCVSS 4.0 8.7 · 3.1 7.5GHSA-hxwh-jpp2-84pm

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.

Published Aug 18, 2024 · Updated May 19, 2026

Affected packages

Flask-Cors

Ecosystem
PyPI
Affected
< 4.0.2
Fixed in
4.0.2
Check
pip show Flask-Cors

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to adrianosela, Alex-ley-scrub, icarocd.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology