CVE-2026-56857

published 8 Oct 2026 · updated 12 Oct 2026

Root.Mkdir(All) can follow junctions out of the root on Windows in os

9.8CriticalCVSS 9.8EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 1.26.9 and 1.27.2.

On Windows, when the target of Root.Mkdir or Root.MkdirAll is a junction pointing to an empty location, the operation can create a directory at the junction target even when that target is located outside the root. This only applies to operations where the last path component is a junction (path/to/junction, but not path/junction/target).

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Go standard library<1.26.9, >=1.27.0-0 <1.27.21.26.9, 1.27.2

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-56857 severity on Zeptric[![CVE-2026-56857](https://zeptric.io/badge/cve/CVE-2026-56857.svg)](https://zeptric.io/cve/CVE-2026-56857)