Advisory

GHSA-hxwh-jpp2-84pm

Also known as: CVE-2024-6221, PYSEC-2024-71

Summary

Flask-CORS allows the Access-Control-Allow-Private-Network CORS header to be set to true by default

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-08-18 21:31 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

flask-cors

PyPI · All systems

Affected

  • introduced 0, fixed 4.0.2 (ecosystem)

Fixed versions

4.0.2

Fix

  • Fixed version 4.0.2
    pip install --upgrade flask-cors==4.0.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences