MediumGHSA-q34m-jh98-gwm2CVE-2024-49767PYSEC-2026-1860PYSEC-2026-3417

Werkzeug possible resource exhaustion when parsing file data in forms

Published 25 Oct 2024 · Updated 10 Sept 2026

Is your project on an affected werkzeug?

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 packages

Affected
>=2.0.0rc1 <3.0.6
Fixed in
3.0.6
Update to the fixed version for your release line, for example:pip install 'werkzeug>=3.0.6'
quartPyPI
Affected
<0.20.0
Fixed in
0.20.0
Update to the fixed version for your release line, for example:pip install 'quart>=0.20.0'

Details

Applications using Werkzeug to parse multipart/form-data requests are vulnerable to resource exhaustion. A specially crafted form body can bypass the Request.max_form_memory_size setting.

The Request.max_content_length setting, as well as resource limits provided by deployment software and platforms, are also available to limit the resources used during a request. This vulnerability does not affect those settings. All three types of limits should be considered and set appropriately when deploying an application.

Is GHSA-q34m-jh98-gwm2 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 werkzeug, and gives you the command that fixes it.

More advisories for werkzeug

  • MediumCVE-2026-102598Werkzeug safe_join() allows Windows special device names · 5 Oct 2026
  • MediumCVE-2026-27199 Werkzeug safe_join() allows Windows special device names · 19 Feb 2026
  • MediumCVE-2026-21860 Werkzeug safe_join() allows Windows special device names with compound extensions · 8 Jan 2026
  • MediumCVE-2025-66221Werkzeug safe_join() allows Windows special device names · 2 Dec 2025
  • MediumCVE-2024-49766Werkzeug safe_join not safe on Windows · 25 Oct 2024
  • HighCVE-2024-34069Werkzeug debugger vulnerable to remote execution when interacting with attacker controlled domain · 6 May 2024
All 15 advisories for werkzeug

References

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