—
GO-2026-6218
Avoid quadratic complexity in resolvePath in net/url
Quick fix
GO-2026-6218 — stdlib: upgrade to the fixed version with the command below.
go get stdlib@v1.25.13 Details
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.
Are you affected?
Enter the version of the package you're using.