Inconsistent Handling of ../ Path Elements in JoinPath and URL.JoinPath

Inconsistent Handling of ../ Path Elements in JoinPath and URL.JoinPath

CVE-2022-32190 · HIGH Severity

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

JoinPath and URL.JoinPath do not remove ../ path elements appended to a relative path. For example, JoinPath("https://go.dev", "../go") returns the URL "https://go.dev/../go", despite the JoinPath documentation stating that ../ path elements are removed from the result.

Learn more about our Web Application Penetration Testing UK.