Is flask 0.4 vulnerable?

PyPI · 1 release from 0.4.0 to 0.4.0 · latest flask is 3.1.3 · checked 18 Nov 2026

Yes: 4 known advisories

Yes. flask 0.4.0, the last 0.4 release, is affected by 4 known security advisories (3 high, 1 low), including CVE-2023-30861, CVE-2019-1010083, CVE-2018-1000656. Upgrade to 3.1.3 or later to fix all of them.

Upgrade with: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

Advisories affecting flask 0.4.0

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

Which of your client projects are still on flask 0.4?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact flask version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other flask versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the PyPI registry. Refreshed daily.