flask vulnerabilities

A simple framework for building complex web applications.

Registry
PyPI
Latest
3.1.3
License
BSD-3-Clause

5 known advisories

The latest version, 3.1.3, is not affected by any of them. Projects on older versions may be.

Update to the latest version:pip install 'flask>=3.1.3'

Is your project on an affected flask?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Security advisories for flask

  • LowCVE-2026-27205GHSA-68rp-wp8r-472619 Feb 2026

    Flask session does not add `Vary: Cookie` header when accessed in some ways

    Affected
    <3.1.3
    Fixed in
    3.1.3
  • LowCVE-2025-47278GHSA-4grg-w6v8-c28g13 May 2025

    Flask uses fallback key instead of current signing key

    Affected
    >=3.1.0 <3.1.1
    Fixed in
    3.1.1
  • HighCVE-2023-30861GHSA-m2qf-hxjv-5gpq1 May 2023

    Flask vulnerable to possible disclosure of permanent session cookie due to missing Vary: Cookie header

    Affected
    >=2.3.0 <2.3.2 · <2.2.5
    Fixed in
    2.2.5, 2.3.2
  • HighCVE-2019-1010083GHSA-5wv5-4vpf-pj6m19 Jul 2019

    Pallets Project Flask is vulnerable to Denial of Service via Unexpected memory usage

    Affected
    <1.0
    Fixed in
    1.0
  • HighCVE-2018-1000656GHSA-562c-5r94-xh9723 Aug 2018

    Flask is vulnerable to Denial of Service via incorrect encoding of JSON data

    Affected
    <0.12.3
    Fixed in
    0.12.3

Is your flask version vulnerable?

Which of your client projects still run an old flask?

NPMscan reads the requirements.txt, poetry.lock, uv.lock and Pipfile.lock in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other PyPI packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the PyPI registry.