{"schema_version":"1.7.3","id":"GO-2022-0988","published":"2022-09-12T20:23:15Z","modified":"2026-07-15T14:29:32.822650429Z","aliases":["BIT-golang-2022-32190","CVE-2022-32190"],"related":["CGA-7rm4-pw37-x797"],"summary":"Failure to strip relative path components in net/url","details":"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.","affected":[{"package":{"name":"stdlib","ecosystem":"Go","purl":"pkg:golang/stdlib"},"ranges":[{"type":"SEMVER","events":[{"introduced":"1.19.0-0"},{"fixed":"1.19.1"}]}],"ecosystem_specific":{"imports":[{"path":"net/url","symbols":["JoinPath","URL.JoinPath"]}]},"database_specific":{"source":"https://vuln.go.dev/ID/GO-2022-0988.json"}}],"references":[{"type":"WEB","url":"https://groups.google.com/g/golang-announce/c/x49AQzIVX-s"},{"type":"REPORT","url":"https://go.dev/issue/54385"},{"type":"FIX","url":"https://go.dev/cl/423514"}],"database_specific":{"review_status":"REVIEWED","url":"https://pkg.go.dev/vuln/GO-2022-0988"},"credits":[{"name":"@q0jt"}]}