#7914·wezterm

Regression: wezterm-gui enables EnforceRedirectionTrust on Windows (inherited by child processes), breaking junction/symlink traversal — present in 20260707, absent in 20260117

Author: WeOnlyDoPartsCreated Jul 10, 2026Updated Sep 21, 2026

Summary

As of 20260707, wezterm-gui.exe runs with the Windows Redirection Guard mitigation enabled (ProcessRedirectionTrustPolicy → EnforceRedirectionTrust = 1). Because process-mitigation state is inherited by child processes, every process spawned inside a wezterm pane (shells, git-bash, python, node, …) inherits EnforceRedirectionTrust = 1 and then fails to traverse any junction or symlink that was created by a non-elevated process, with ERROR_UNTRUSTED_MOUNT_POINT (Win32 448 / 0x800701C0).

This is a regression: 20260117 did not enable the policy and 20260707 does. I have not bisected the intervening nightlies, so I can't say which version introduced it — only that it appeared somewhere in that ~6-month window.

Environment

  • Windows 11 25H2, build 26200.8655
  • wezterm 20260707-093716-fff02ca5 (affected). Last known-good on this machine: 20260117-154428-05343b38. Nightlies in between were not tested, so the introducing version is unknown.

Symptom

Inside a wezterm pane, resolving a path through a user-created reparse point fails:

0x800701C0 — "The path cannot be traversed because it contains an untrusted mount point."

Real-world breakage observed:

  • scoop apps\*\current junctions and their shims (Shim: Could not create process)
  • pytest %TEMP% …-current symlinks (python's realpath throws WinError 448)
  • anything that shells out through those — e.g. a pre-commit hook invoking a scoop-installed gitleaks

The identical commands succeed when the shell is launched outside wezterm (e.g. from Explorer / another terminal).

Root cause / evidence

GetProcessMitigationPolicy(ProcessRedirectionTrustPolicy) shows enforcement only on wezterm and its descendants — every other process tree on the machine reads 0:

Process Tree RedirectionTrust
wezterm-gui.exe wezterm root Enforce = 1
child shell / python / etc. under wezterm Enforce = 1 (inherited)
elevated shell, explorer.exe, unrelated processes separate trees Enforce = 0

Minimal reproduction of the mechanism and the trust rule — enable the policy on the current process, then traverse two junctions:

SetProcessMitigationPolicy(ProcessRedirectionTrustPolicy, EnforceRedirectionTrust=1)  ->  nowEnforce = 1

<junction created by a normal user process>  ->  FAIL 0x800701C0  (untrusted mount point)
<junction created by an elevated process>    ->  OK

So the trust rule is creator-integrity based: a junction created by a high-integrity/elevated token is trusted and traverses even under enforcement; a normal user-created one does not.

The policy appears to be applied at process startup by wezterm and cannot be overridden via IFEO MitigationOptions (ordinary word-0 IFEO mitigations do apply on this machine, but this one does not — consistent with a runtime SetProcessMitigationPolicy call rather than a manifest flag). I couldn't find a config option for it, and it isn't mentioned in the changelog.

Ask

Was enabling Redirection Guard intentional? If so, could it be made opt-out via config (e.g. enable_redirection_trust = false)? As shipped, it silently breaks common junction/symlink-based tooling (scoop, pytest, …) for every process launched from wezterm, and the resulting error doesn't obviously point back at the terminal as the cause.

Happy to provide more detail or test a build.