CVE-2026-56860

GO-2026-6218 · published 13 Aug 2026 · updated 14 Nov 2026

Avoid quadratic complexity in resolvePath in net/url

5.9MediumCVSS 5.9EPSS 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.25.13, 1.26.6, 1.27.0-rc.3 and 1 more.

Previously, resolving relative paths containing parent directory ('..') segments performed string conversions and buffer rewrites on each step, resulting in quadratic time complexity and high memory allocation overhead. Now, path resolution operates on a byte buffer using index-based backtracking for '..' segments, eliminating the quadratic time complexity and significantly reducing memory allocations.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Go standard library<1.25.13, >=1.26.0-0 <1.26.6, >=1.27.0-0 <1.27.0-rc.31.25.13, 1.26.6, 1.27.0-rc.3
go: stdlib>=1.27.0-0 <1.27.0-rc.31.27.0-rc.3

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in stdlib (Go), strongest first

Embed

A live severity badge for an advisory, README or ticket

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