Update dependency werkzeug to v3.1.9 [SECURITY] #3

Merged
jonathan merged 1 commit from renovate/pypi-werkzeug-vulnerability into main 2026-11-16 07:54:58 +00:00
Collaborator

This PR contains the following updates:

Package Type Update Change
werkzeug (changelog) uv.lock patch 3.1.8 → 3.1.9

Werkzeug safe_join() allows Windows special device names

CVE-2026-102598 / GHSA-g6x2-hccm-hh4m / PYSEC-2026-4312

More information

Details

Werkzeug's safe_join 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:.

send_from_directory uses safe_join 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.

Severity

  • CVSS Score: 6.3 / 10 (Medium)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


Werkzeug safe_join() allows Windows special device names

CVE-2026-102598 / GHSA-g6x2-hccm-hh4m / PYSEC-2026-4312

More information

Details

Werkzeug's safe_join 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:.

send_from_directory uses safe_join 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.

Severity

  • CVSS Score: 6.3 / 10 (Medium)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

References

This data is provided by OSV and the PyPI Advisory Database (CC-BY 4.0).


Release Notes

pallets/werkzeug (werkzeug)

v3.1.9

Compare Source

Released 2026-09-27

  • safe_join on Windows does not allow special devices names with empty ADS
    markers on NTFS. :ghsa:g6x2-hccm-hh4m
  • ProfilerMiddleware uses profiling.tracing on Python 3.15.
    :issue:3207
  • uri_to_iri and iri_to_uri preserve empty username, password, and
    port 0. :issue:3189
  • Improve performance of parse_options_header. :pr:3231
  • Improve performance of parse_etags. :pr:3231
  • Improve performance of parse_cookie. :pr:3231
  • get_host also checks that the port is in the valid range. :pr:3236
  • The int URL converter returns a 404 instead of 500 error when the value
    is longer than sys.get_int_max_str_digits(). :issue:3237
  • Improve debugger PIN generation from cgroup data inside Podman.
    :issue:3245
  • Authorization parsing basic auth disallows non-base64 characters.
    :pr:3248
  • application/x-www-form-urlencoded form data is no longer limited to
    max_form_memory_size, only max_content_length. :pr:3251
  • LimitedStream.readinto does not resize the buffer when it reads less
    than the remaining size. :pr:3253
  • Rules with 10 or more converters in a single part assign matched values
    correctly. :pr:3254
  • The invalid Range suffix length -0 is no longer accepted. :pr:3255

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [werkzeug](https://github.com/pallets/werkzeug) ([changelog](https://werkzeug.palletsprojects.com/page/changes/)) | uv.lock | patch | `3.1.8` → `3.1.9` | --- ### Werkzeug safe_join() allows Windows special device names [CVE-2026-102598](https://nvd.nist.gov/vuln/detail/CVE-2026-102598) / [GHSA-g6x2-hccm-hh4m](https://github.com/advisories/GHSA-g6x2-hccm-hh4m) / PYSEC-2026-4312 <details> <summary>More information</summary> #### Details Werkzeug's `safe_join` 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:`. `send_from_directory` uses `safe_join` 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. #### Severity - CVSS Score: 6.3 / 10 (Medium) - Vector String: `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N` #### References - [https://github.com/pallets/werkzeug/security/advisories/GHSA-g6x2-hccm-hh4m](https://github.com/pallets/werkzeug/security/advisories/GHSA-g6x2-hccm-hh4m) - [https://nvd.nist.gov/vuln/detail/CVE-2026-102598](https://nvd.nist.gov/vuln/detail/CVE-2026-102598) - [https://github.com/pallets/werkzeug/pull/3309](https://github.com/pallets/werkzeug/pull/3309) - [https://github.com/pallets/werkzeug/commit/8d77320bcdf3a34941ec06dcf16b03c065cd21b6](https://github.com/pallets/werkzeug/commit/8d77320bcdf3a34941ec06dcf16b03c065cd21b6) - [https://github.com/pallets/werkzeug](https://github.com/pallets/werkzeug) - [https://github.com/pallets/werkzeug/releases/tag/3.1.9](https://github.com/pallets/werkzeug/releases/tag/3.1.9) This data is provided by [OSV](https://osv.dev/vulnerability/GHSA-g6x2-hccm-hh4m) and the [GitHub Advisory Database](https://github.com/github/advisory-database) ([CC-BY 4.0](https://github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### Werkzeug safe_join() allows Windows special device names [CVE-2026-102598](https://nvd.nist.gov/vuln/detail/CVE-2026-102598) / [GHSA-g6x2-hccm-hh4m](https://github.com/advisories/GHSA-g6x2-hccm-hh4m) / PYSEC-2026-4312 <details> <summary>More information</summary> #### Details Werkzeug's `safe_join` 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:`. `send_from_directory` uses `safe_join` 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. #### Severity - CVSS Score: 6.3 / 10 (Medium) - Vector String: `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N` #### References - [https://github.com/pallets/werkzeug/security/advisories/GHSA-g6x2-hccm-hh4m](https://github.com/pallets/werkzeug/security/advisories/GHSA-g6x2-hccm-hh4m) - [https://nvd.nist.gov/vuln/detail/CVE-2026-102598](https://nvd.nist.gov/vuln/detail/CVE-2026-102598) - [https://github.com/pallets/werkzeug/pull/3309](https://github.com/pallets/werkzeug/pull/3309) - [https://github.com/pallets/werkzeug/commit/8d77320bcdf3a34941ec06dcf16b03c065cd21b6](https://github.com/pallets/werkzeug/commit/8d77320bcdf3a34941ec06dcf16b03c065cd21b6) - [https://github.com/pallets/werkzeug](https://github.com/pallets/werkzeug) - [https://github.com/pallets/werkzeug/releases/tag/3.1.9](https://github.com/pallets/werkzeug/releases/tag/3.1.9) - [https://pypi.org/project/werkzeug](https://pypi.org/project/werkzeug) - [https://github.com/advisories/GHSA-g6x2-hccm-hh4m](https://github.com/advisories/GHSA-g6x2-hccm-hh4m) This data is provided by [OSV](https://osv.dev/vulnerability/PYSEC-2026-4312) and the [PyPI Advisory Database](https://github.com/pypa/advisory-database) ([CC-BY 4.0](https://github.com/pypa/advisory-database/blob/main/LICENSE)). </details> --- ### Release Notes <details> <summary>pallets/werkzeug (werkzeug)</summary> ### [`v3.1.9`](https://github.com/pallets/werkzeug/blob/HEAD/CHANGES.rst#Version-319) [Compare Source](https://github.com/pallets/werkzeug/compare/3.1.8...3.1.9) Released 2026-09-27 - `safe_join` on Windows does not allow special devices names with empty ADS markers on NTFS. :ghsa:`g6x2-hccm-hh4m` - `ProfilerMiddleware` uses `profiling.tracing` on Python 3.15. :issue:`3207` - `uri_to_iri` and `iri_to_uri` preserve empty username, password, and port 0. :issue:`3189` - Improve performance of `parse_options_header`. :pr:`3231` - Improve performance of `parse_etags`. :pr:`3231` - Improve performance of `parse_cookie`. :pr:`3231` - `get_host` also checks that the port is in the valid range. :pr:`3236` - The `int` URL converter returns a 404 instead of 500 error when the value is longer than `sys.get_int_max_str_digits()`. :issue:`3237` - Improve debugger PIN generation from cgroup data inside Podman. :issue:`3245` - `Authorization` parsing `basic` auth disallows non-base64 characters. :pr:`3248` - `application/x-www-form-urlencoded` form data is no longer limited to `max_form_memory_size`, only `max_content_length`. :pr:`3251` - `LimitedStream.readinto` does not resize the buffer when it reads less than the remaining size. :pr:`3253` - Rules with 10 or more converters in a single part assign matched values correctly. :pr:`3254` - The invalid `Range` suffix length `-0` is no longer accepted. :pr:`3255` </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMjIuNCIsInVwZGF0ZWRJblZlciI6IjQ0LjIyMi40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jonathan/masters!3
No description provided.