Vulnerabilities in pkg:pypi/Werkzeug

PACKAGE
Advisory Identifier: GHSA-2g68-c3qc-8985
Advisory Summary

CVE-2024-34069 is a HIGH (CVSS 7.5) werkzeug debugger vulnerable to remote vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Werkzeug libraries in the PyPI ecosystem. The issue involves werkzeug debugger vulnerable to remote execution when interacting with attacker controlled domain. Remediation is available by upgrading affected packages to version 3.0.3.

9 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/Werkzeug

9 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/Werkzeug. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-2g68-c3qc-8985 CVE-2024-34069 HIGH Werkzeug debugger vulnerable to remote execution when interacting with attacker controlled domain
GHSA-g6x2-hccm-hh4m CVE-2026-102598 MODERATE Werkzeug safe_join() allows Windows special device names
GHSA-q34m-jh98-gwm2 CVE-2024-49767 MODERATE Werkzeug possible resource exhaustion when parsing file data in forms
GHSA-hrfv-mqp8-q5rw CVE-2023-46136 MODERATE Werkzeug DoS: High resource usage when parsing multipart/form-data containing a large part with CR/LF character at the beginning
GHSA-87hc-h4r5-73f7 CVE-2026-21860 MODERATE Werkzeug safe_join() allows Windows special device names with compound extensions
GHSA-f9vj-2wh5-fj8j CVE-2024-49766 MODERATE Werkzeug safe_join not safe on Windows
GHSA-xg9f-g7g7-2323 CVE-2023-25577 HIGH High resource usage when parsing multipart form data with many fields
GHSA-px8h-6qxv-m22q CVE-2023-23934 LOW Incorrect parsing of nameless cookies leads to __Host- cookies bypass
GHSA-h2fp-xgx6-xh6f CVE-2016-10516 MODERATE Pallets Werkzeug cross-site scripting vulnerability

CVE-2024-34069 at a Glance

CVE Identifier CVE-2024-34069
GHSA Identifier GHSA-2g68-c3qc-8985
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-352: Cross-Site Request Forgery (CSRF)
Affected Product Werkzeug
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2024-34069

To remediate this vulnerability, upgrade all affected Werkzeug dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

Werkzeug fixed: 3.0.3
pip install Werkzeug>=3.0.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show Werkzeug

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2024-34069, inspect your installed packages using pip:

pip show Werkzeug

Analyze the terminal output to locate any version of Werkzeug in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.0.3), your application is affected.

Note: The pip show Werkzeug command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. In Werkzeug, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

The debugger in affected versions of Werkzeug can allow an attacker to execute code on a developer's machine under some circumstances. This requires the attacker to get the developer to interact with a domain and subdomain they control, and enter the debugger PIN, but if they are successful it allows access to the debugger even if it is only running on localhost. This also requires the attacker to guess a URL in the developer's application that will trigger the debugger.

CVE-2024-34069 Affected Werkzeug Versions

1 component(s)
Fixed Versions:
3.0.3
Product / Package Ecosystem Affected Versions Fixed Version
Werkzeug
PyPI
< 3.0.3
3.0.3

References

Frequently Asked Questions

What is CVE-2024-34069?
CVE-2024-34069 is a security vulnerability in Werkzeug involving Werkzeug debugger vulnerable to remote execution when interacting with attacker controlled domain under CWE-352: Cross-Site Request Forgery (CSRF).
Which Werkzeug versions are affected?
Affected versions include releases prior to 3.0.3 across affected packages: Werkzeug.
What version fixes CVE-2024-34069?
Upgrading to 3.0.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Werkzeug affected?
Yes, Werkzeug is affected in releases prior to 3.0.3. Upgrade your dependency to 3.0.3 or later.
What is the CVSS score of CVE-2024-34069?
CVE-2024-34069 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2024-34069?
CVE-2024-34069 is classified under CWE-352: Cross-Site Request Forgery (CSRF) (The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.).
How can I check PyPI dependencies for CVE-2024-34069?
Run the dependency tree command: 'pip show Werkzeug'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-2g68-c3qc-8985",
  "modified" : "2026-11-18T00:16:56Z",
  "published" : "2024-05-06T14:21:27Z",
  "aliases" : [ "CVE-2024-34069" ],
  "summary" : "Werkzeug debugger vulnerable to remote execution when interacting with attacker controlled domain",
  "details" : "The debugger in affected versions of Werkzeug can allow an attacker to execute code on a developer's machine under some circumstances. This requires the attacker to get the developer to interact with a domain and subdomain they control, and enter the debugger PIN, but if they are successful it allows access to the debugger even if it is only running on localhost. This also requires the attacker to guess a URL in the developer's application that will trigger the debugger.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Werkzeug"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.0.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/pallets/werkzeug/security/advisories/GHSA-2g68-c3qc-8985"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-34069"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pallets/werkzeug/commit/3386395b24c7371db11a5b8eaac0c91da5362692"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/pallets/werkzeug"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pallets/werkzeug/releases/tag/3.0.3"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/werkzeug/PYSEC-2026-2043.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2025/02/msg00026.html"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/H4SH32AM3CTPMAAEOIDAN7VU565LO4IR"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HFERFN7PINV4MOGMGA3DPIXJPDCYOEJZ"
  }, {
    "type" : "WEB",
    "url" : "https://pypi.org/project/werkzeug"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20240614-0004"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-352" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-06T14:21:27Z",
    "nvd_published_at" : "2024-05-06T15:15:23Z"
  }
}