Description
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 (4)
Core 4
Core References
Patch, Release Notes
https://go.dev/cl/423514
Issue Tracking, Patch, Vendor Advisory
https://go.dev/issue/54385
Mailing List, Third Party Advisory
https://groups.google.com/g/golang-announce/c/x49AQzIVX-s
Issue Tracking, Patch, Vendor Advisory
https://pkg.go.dev/vuln/GO-2022-0988
Scores
CVSS v3
7.5
EPSS
0.0008
EPSS Percentile
24.5%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Details
CWE
CWE-22
Status
published
Products (1)
golang/go
1.19.0 (4 CPE variants)
Published
Sep 13, 2022
Tracked Since
Feb 18, 2026