GitHub Advisoryadvisory · PyPI

GHSA-hxwh-jpp2-84pm Flask-CORS allows the `Access-Control-Allow-Private-Network` CORS header to be set to true by default

HIGH Published 2024-08-18 Modified 2026-06-08 Official page ↗
Aliases
CVE-2024-6221
Ecosystem
PyPI
Packages
Flask-Cors
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weaknesses
CWE-284
Reviewed
2024-08-19

Affected packages

• PyPI Flask-Cors: < 4.0.2 → fixed in 4.0.2

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

Related

Alias · CVE (1)

  • CVE-2024-6221 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… vulnerability

Weakness · CWE (1)

  • CWE-284 Improper Access Control weakness

References