JoinPath and URL.JoinPath do not remove ../ path elements...
Critical severity
Unreviewed
Published
Sep 14, 2022
to the GitHub Advisory Database
•
Updated Jan 27, 2023
Description
Published by the National Vulnerability Database
Sep 13, 2022
Published to the GitHub Advisory Database
Sep 14, 2022
Last updated
Jan 27, 2023
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.
References