Skip to content

← Public intelligence

PyPI package

werkzeug

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

15 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. Medium, CVSS 6.3PyPIAmendedPublished

    Werkzeug safe_join() allows Windows special device names

    CVE-2026-102598 · GHSA-g6x2-hccm-hh4m

    Affected
    • PyPI werkzeug < 3.1.9
    Fixed in
    3.1.9· Vendor fix available
    Issue
    Werkzeug's safejoin function allows Windows device names as filenames when they have an empty ADS marker on NTFS. This was previously reported as https://github.com/pallets/werkzeug/security/advisories/GHSA-hgf8-39gv-g3f2, but the added filtering failed to account for the fact Windows allows special device names with an empty ADS marker, such as NUL:. sendfromdirectory uses safejoin to safely serve files at user-specified paths under a directory. If the application is running on Windows and NTFS, and the requested path ends with a special device name, the file will be opened successfully, but reading will hang indefinitely.

    Recommended action: Upgrade to 3.1.9 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.com (1)osv.dev (2)Source checked Evidence →
  2. Medium, CVSS 6.3PyPIAmendedPublished

    Werkzeug safe_join() allows Windows special device names

    CVE-2026-27199 · GHSA-29vq-49wr-vm6x

    Affected
    • PyPI werkzeug < 3.1.6
    Fixed in
    3.1.6· Vendor fix available
    Issue
    Werkzeug's safejoin function allows Windows device names as filenames if when preceded by other path segments. This was previously reported as https://github.com/pallets/werkzeug/security/advisories/GHSA-hgf8-39gv-g3f2, but the added filtering failed to account for the fact that safejoin accepts paths with multiple segments, such as example/NUL. sendfromdirectory uses safejoin to safely serve files at user-specified paths under a directory. If the application is running on Windows, and the requested path ends with a special device name, the file will be opened successfully, but reading will hang indefinitely.

    Recommended action: Upgrade to 3.1.6 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  3. Medium, CVSS 6.3PyPIAmendedPublished

    Werkzeug safe_join() allows Windows special device names with compound extensions

    CVE-2026-21860 · GHSA-87hc-h4r5-73f7

    Affected
    • PyPI werkzeug < 3.1.5
    Fixed in
    3.1.5· Vendor fix available
    Issue
    Werkzeug's safejoin function allows path segments with Windows device names that have file extensions or trailing spaces. On Windows, there are special device names such as CON, AUX, etc that are implicitly present and readable in every directory. Windows still accepts them with any file extension, such as CON.txt, or trailing spaces such as CON . This was previously reported as https://github.com/pallets/werkzeug/security/advisories/GHSA-hgf8-39gv-g3f2, but the fix failed to account for compound extensions such as CON.txt.html or trailing spaces. It also missed some additional special names. sendfromdirectory uses safejoin to safely serve files at user-specified paths under a directory. If the application is running on Windows, and the requested path ends with a special device name, the file will be opened successfully, but reading will hang indefinitely.

    Recommended action: Upgrade to 3.1.5 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  4. Medium, CVSS 6.3PyPIAmendedPublished

    Werkzeug safe_join() allows Windows special device names

    CVE-2025-66221 · GHSA-hgf8-39gv-g3f2

    Affected
    • PyPI werkzeug < 3.1.4
    Fixed in
    3.1.4· Vendor fix available
    Issue
    Werkzeug's safejoin function allows path segments with Windows device names. On Windows, there are special device names such as CON, AUX, etc that are implicitly present and readable in every directory. sendfromdirectory uses safejoin to safely serve files at user-specified paths under a directory. If the application is running on Windows, and the requested path ends with a special device name, the file will be opened successfully, but reading will hang indefinitely.

    Recommended action: Upgrade to 3.1.4 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  5. Medium, CVSS 6.9PyPIAmendedPublished

    Werkzeug possible resource exhaustion when parsing file data in forms

    CVE-2024-49767 · GHSA-q34m-jh98-gwm2

    Affected
    • PyPI werkzeug >= 2.0.0rc1, <= 3.0.5
    Fixed in
    3.0.6· Vendor fix available
    Issue
    Applications using Werkzeug to parse multipart/form-data requests are vulnerable to resource exhaustion. A specially crafted form body can bypass the Request.maxformmemorysize setting. The Request.maxcontentlength 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.

    Recommended action: Upgrade to 3.0.6 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  6. Medium, CVSS 6.3PyPIAmendedPublished

    Werkzeug safe_join not safe on Windows

    CVE-2024-49766 · GHSA-f9vj-2wh5-fj8j

    Affected
    • PyPI werkzeug <= 3.0.5
    Fixed in
    3.0.6· Vendor fix available
    Issue
    On Python < 3.11 on Windows, os.path.isabs() does not catch UNC paths like //server/share. Werkzeug's safejoin() relies on this check, and so can produce a path that is not safe, potentially allowing unintended access to data. Applications using Python = 3.11, or not using Windows, are not vulnerable.

    Recommended action: Upgrade to 3.0.6 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  7. High, CVSS 7.5PyPIAmendedPublished

    Werkzeug debugger vulnerable to remote execution when interacting with attacker controlled domain

    CVE-2024-34069 · GHSA-2g68-c3qc-8985

    Affected
    • PyPI werkzeug < 3.0.3
    Fixed in
    3.0.3· Vendor fix available
    Issue
    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.

    Recommended action: Upgrade to 3.0.3 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  8. Medium, CVSS 5.7PyPIAmendedPublished

    Werkzeug DoS: High resource usage when parsing multipart/form-data containing a large part with CR/LF character at the beginning

    CVE-2023-46136 · GHSA-hrfv-mqp8-q5rw

    Affected
    • PyPI werkzeug >= 3.0.0, < 3.0.1; >= 2.0.0rc1, < 2.3.8
    Fixed in
    3.0.12.3.8· Vendor fix available
    Issue
    Werkzeug multipart data parser needs to find a boundary that may be between consecutive chunks. That's why parsing is based on looking for newline characters. Unfortunately, code looking for partial boundary in the buffer is written inefficiently, so if we upload a file that starts with CR or LF and then is followed by megabytes of data without these characters: all of these bytes are appended chunk by chunk into internal bytearray and lookup for boundary is performed on growing buffer. This allows an attacker to cause a denial of service by sending crafted multipart data to an endpoint that will parse it. The amount of CPU time required can block worker processes from handling legitimate requests. The amount of RAM required can trigger an out of memory kill of the process. If many concurrent requests are sent continuously, this can exhaust or kill all available workers.

    Recommended action: Upgrade to 3.0.1 or 2.3.8 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  9. Low, CVSS 2.6PyPIAmendedPublished

    Incorrect parsing of nameless cookies leads to __Host- cookies bypass

    CVE-2023-23934 · GHSA-px8h-6qxv-m22q

    Affected
    • PyPI werkzeug < 2.2.3
    Fixed in
    2.2.3· Vendor fix available
    Issue
    Browsers may allow "nameless" cookies that look like =value instead of key=value. A vulnerable browser may allow a compromised application on an adjacent subdomain to exploit this to set a cookie like =Host-test=bad for another subdomain. Werkzeug <= 2.2.2 will parse the cookie =Host-test=bad as Host-test=bad. If a Werkzeug application is running next to a vulnerable or malicious subdomain which sets such a cookie using a vulnerable browser, the Werkzeug application will see the bad cookie value but the valid cookie key.

    Recommended action: Upgrade to 2.2.3 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  10. High, CVSS 7.5PyPIAmendedPublished

    High resource usage when parsing multipart form data with many fields

    CVE-2023-25577 · GHSA-xg9f-g7g7-2323

    Affected
    • PyPI werkzeug < 2.2.3
    Fixed in
    2.2.3· Vendor fix available
    Issue
    Werkzeug's multipart form data parser will parse an unlimited number of parts, including file parts. Parts can be a small amount of bytes, but each requires CPU time to parse and may use more memory as Python data. If a request can be made to an endpoint that accesses request.data, request.form, request.files, or request.getdata(parseformdata=False), it can cause unexpectedly high resource usage. This allows an attacker to cause a denial of service by sending crafted multipart data to an endpoint that will parse it. The amount of CPU time required can block worker processes from handling legitimate requests. The amount of RAM required can trigger an out of memory kill of the process. Unlimited file parts can use up memory and file handles. If many concurrent requests are sent continuously, this can exhaust or kill all available workers.

    Recommended action: Upgrade to 2.2.3 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  11. UnratedPyPIPublished

    PYSEC-2022-203

    CVE-2022-29361

    Affected
    • PyPI werkzeug < 2.1.1
    Fixed in
    2.1.1· Vendor fix available
    Issue
    DISPUTED Improper parsing of HTTP requests in Pallets Werkzeug v2.1.0 and below allows attackers to perform HTTP Request Smuggling using a crafted HTTP request with multiple requests included inside the body. NOTE: the vendor's position is that this behavior can only occur in unsupported configurations involving development mode and an HTTP server from outside the Werkzeug project.

    Recommended action: Upgrade to 2.1.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.devSource checked Evidence →
  12. High, CVSS 7.5PyPIAmendedPublished

    Pallets Werkzeug vulnerable to Path Traversal

    CVE-2019-14322 · GHSA-j544-7q9p-6xp8

    Affected
    • PyPI werkzeug < 0.15.5
    Fixed in
    0.15.5· Vendor fix available
    Issue
    In Pallets Werkzeug before 0.15.5, SharedDataMiddleware mishandles drive names (such as C:) in Windows pathnames.

    Recommended action: Upgrade to 0.15.5 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  13. Medium, CVSS 6.1PyPIAmendedPublished

    Pallets Werkzeug cross-site scripting vulnerability

    CVE-2016-10516 · GHSA-h2fp-xgx6-xh6f

    Affected
    • PyPI werkzeug < 0.11.11
    Fixed in
    0.11.11· Vendor fix available
    Issue
    Cross-site scripting (XSS) vulnerability in the renderfull function in debug/tbtools.py in the debugger in Pallets Werkzeug before 0.11.11 (as used in Pallets Flask and other products) allows remote attackers to inject arbitrary web script or HTML via a field that contains an exception message.

    Recommended action: Upgrade to 0.11.11 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  14. Medium, CVSS 5.3PyPIAmendedPublished

    Open Redirect in werkzeug

    CVE-2020-28724 · GHSA-3p3h-qghp-hvh2

    Affected
    • PyPI werkzeug < 0.11.6
    Fixed in
    0.11.6· Vendor fix available
    Issue
    Open redirect vulnerability in werkzeug before 0.11.6 via a double slash in the URL.

    Recommended action: Upgrade to 0.11.6 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  15. High, CVSS 8.7PyPIAmendedPublished

    Pallets Werkzeug Insufficient Entropy

    CVE-2019-14806 · GHSA-gq9m-qvpx-68hc

    Affected
    • PyPI werkzeug < 0.15.3
    Fixed in
    0.15.3· Vendor fix available
    Issue
    Pallets Werkzeug before 0.15.3, when used with Docker, has insufficient debugger PIN randomness because Docker containers share the same machine id.

    Recommended action: Upgrade to 0.15.3 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →