Skip to content
Fencer Vulns
medium 6.5

CVE-2024-6221 json

Improper Access Control in corydolphin/flask-cors

published 2024-08-18 2 y ago modified 2026-09-10 1 mo ago also GHSA-hxwh-jpp2-84pm , PYSEC-2024-260 , PYSEC-2024-71 , EUVD-2024-0061

cvss
6.5
version 3.0, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.7%
EPSS 0.7% chance of exploitation in 30 days, percentile 54%
public exploits
0
none known

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

Patch / fix

  • pypi flask-cors 4.0.2
  • corydolphin corydolphin/flask-cors 5.0.0
  • python-flask-cors Debian 14, Debian 13 5.0.0-1

debian advisories DEBIAN-CVE-2024-6221

  • python-flask-cors Ubuntu 22.04 LTS 3.0.9-2ubuntu0.1
  • python-flask-cors Ubuntu Pro 20.04 LTS 3.0.8-2ubuntu0.1+esm1
  • python-flask-cors Ubuntu Pro 24.04 LTS 4.0.0-1ubuntu0.1~esm1

ubuntu advisories UBUNTU-CVE-2024-6221

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-6221 updated cvss 7.5

flask-cors: Private Network Permission Enabled by default in corydolphin/flask-cors

  • Red Hat All currently supported Red Hat products
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
partial
Assessed
2 y ago

Exploit prediction

0.72% chance of exploitation in the next 30 days, higher than 54% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • huntr.com https://huntr.com/bounties/a42935fc-6f57-4818-bca4-3d528235df4d referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.0 6.5 CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
NVD 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHub 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
OSV 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected packages

ecosystem package affected fixed in
pypi flask-cors
<4.0.2
4.0.2

Affected products

  • corydolphin corydolphin/flask-cors
  • corydolphin flask-cors

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.