High

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

  • Disclosed: 20.08.2018
  • Updated: 11.10.2026 12:19

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) flask < 0.12.3 0.12.3

References

CVSS score 7.5/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness (CWE)
CWE-20
Platform
Python (PyPI)
Package
flask
Disclosed
20.08.2018
Updated
11.10.2026 12:19

Sources and licenses

OSV / GitHub Advisory Database - PYSEC-2018-66 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-562c-5r94-xh97 - CC BY 4.0

Vulnerability history: flask

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
5
First → latest
08.2018 02.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 3
  • Low 2

Disclosures per year

  1. 2018: 1
  2. 2019: 1
  3. 2020: 0
  4. 2021: 0
  5. 2022: 0
  6. 2023: 1
  7. 2024: 0
  8. 2025: 1
  9. 2026: 1
  1. Low CVE-2025-47278 >= 3.1.0, < 3.1.1 3.1.1
  2. High · 7.5 CVE-2023-30861 >= 2.3.0, < 2.3.2, < 2.2.5 2.3.2, 2.2.5
  3. Flask is vulnerable to Denial of Service via incorrect encoding of JSON data this entry
    High · 7.5 CVE-2018-1000656 < 0.12.3 0.12.3

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.