HighGHSA-562c-5r94-xh97CVE-2018-1000656PYSEC-2018-66

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

Published 23 Aug 2018 · Updated 21 Feb 2025

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

Affected package

flaskPyPI
Affected
<0.12.3
Fixed in
0.12.3
Update to the fixed version for your release line, for example:pip install 'flask>=0.12.3'

Details

The Pallets Project flask version Before 0.12.3 contains a CWE-20: Improper Input Validation vulnerability in flask that can result in Large amount of memory usage possibly leading to denial of service. This attack appear to be exploitable via Attacker provides JSON data in incorrect encoding. This vulnerability appears to have been fixed in 0.12.3.

Is GHSA-562c-5r94-xh97 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected flask, and gives you the command that fixes it.

More advisories for flask

  • LowCVE-2026-27205Flask session does not add `Vary: Cookie` header when accessed in some ways · 19 Feb 2026
  • LowCVE-2025-47278Flask uses fallback key instead of current signing key · 13 May 2025
  • HighCVE-2023-30861Flask vulnerable to possible disclosure of permanent session cookie due to missing Vary: Cookie header · 1 May 2023
  • HighCVE-2019-1010083Pallets Project Flask is vulnerable to Denial of Service via Unexpected memory usage · 19 Jul 2019
flask security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.