CVE-2026-56860

Summary

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 Software

VendorProductVersion RangeStatus
Go standard librarynet/url0 < 1.25.13affected
Go standard librarynet/url1.26.0-0 < 1.26.6affected
Go standard librarynet/url1.27.0-0 < 1.27.0-rc.3affected

Weaknesses

  • CWE-407: Inefficient Algorithmic Complexity

References