Go net/url quadratic path resolution DoS before 1.27.0-rc.3
CVE-2026-56860 Published on August 13, 2026
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.
Products Associated with CVE-2026-56860
Want to know whenever a new CVE is published for GoLang Go? stack.watch will email you.
Affected Versions
Go standard library net/url:- Before 1.25.13 is affected.
- Version 1.26.0-0 and below 1.26.6 is affected.
- Version 1.27.0-0 and below 1.27.0-rc.3 is affected.