CVE-2024-6221 Affecting python-flask-cors package, versions <4.0.1-1ubuntu0.1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.04% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2410-PYTHONFLASKCORS-8190075
  • published26 Jun 2025
  • disclosed18 Aug 2024

Introduced: 18 Aug 2024

CVE-2024-6221  (opens in a new tab)

How to fix?

Upgrade Ubuntu:24.10 python-flask-cors to version 4.0.1-1ubuntu0.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python-flask-cors package and not the python-flask-cors package as distributed by Ubuntu. See How to fix? for Ubuntu:24.10 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1