Back to list

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

GitHub · GitHub · CVE-2024-6221

ID
CVE-2024-6221
Date
Updated
Activity
Source
GitHub
Vendor
GitHub
Threat
high
CVSS
8.7
EPSS
0.00637

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, 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.

Product

pip: Flask-Cors

What to do

General, cautious steps (verify details in the official source):

  • Prioritize patching or mitigation immediately (treat as actively risky).
  • Identify affected product versions in your inventory and verify whether you are impacted.
  • Apply vendor patches/updates or recommended mitigations as soon as available.
  • Read the official advisory for exact affected versions and remediation steps.

Official advisory

Related advisories