PyPI (Python)Worst: High5 advisories
flask: known vulnerabilities
flask has 5 reviewed security advisories in the GitHub Advisory Database — 3 high, 2 low. The most recent was published 2026-02-21. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the flask versions running across your servers, containers and images, and ranks what to patch first.
How to fix flask
Upgrade flask to a release at or above the fixed version shown for each advisory below. For PyPI (Python):
pip install --upgrade flask (pin flask>=3.1.3)
SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.
Advisories (5)
Flask session does not add `Vary: Cookie` header when accessed in some ways
Low CWE-524
— Affected: before 3.1.3. Fixed in 3.1.3. Published 2026-02-21. GHSA-68rp-wp8r-4726 · CVE-2026-27205
Flask uses fallback key instead of current signing key
Low CWE-683
— Affected: from 3.1.0 up to 3.1.1. Fixed in 3.1.1. Published 2025-05-13. GHSA-4grg-w6v8-c28g · CVE-2025-47278
Flask vulnerable to possible disclosure of permanent session cookie due to missing Vary: Cookie header
High 7.5 CWE-539
— Affected: before 2.2.5. Fixed in 2.2.5. Published 2023-05-02. GHSA-m2qf-hxjv-5gpq · CVE-2023-30861
Pallets Project Flask is vulnerable to Denial of Service via Unexpected memory usage
High 7.5 CWE-400
— Affected: before 1.0. Fixed in 1.0. Published 2019-07-17. GHSA-5wv5-4vpf-pj6m · CVE-2019-1010083
Flask is vulnerable to Denial of Service via incorrect encoding of JSON data
High 7.5 CWE-20
— Affected: before 0.12.3. Fixed in 0.12.3. Published 2018-08-23. GHSA-562c-5r94-xh97 · CVE-2018-1000656
Find flask across your fleet
Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA,
CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month.
Start free.