VulnWatch by ve1ve2
medium 5.9 EPSS 0.55%

GO-2026-6218: Avoid quadratic complexity in resolvePath in net/url

Source:
OSV.dev
Published:
Fetched:
Updated:
Affects:
stdlib

https://osv.dev/vulnerability/GO-2026-6218 ↗

osvgofix-available

Avoid quadratic complexity in resolvePath in net/url 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: Go:stdlib Fixed in: 1.25.13, 1.26.6, 1.27.0-rc.3 References: https://go.dev/cl/803681 https://go.dev/issue/80494 https://groups.google.com/g/golang-announce/c/94pEornpRlI

Linked vulnerabilities (1)

CVE-2026-56860 medium 5.9 EPSS 0.55% (p47) NVDCVE.org
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Avoid quadratic complexity in resolvePath in net/url

CWE: CWE-407NVD: Awaiting Analysis