GO-2022-0988
Dashboard / Vulnerabilities / GO-2022-0988
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.
References: https://groups.google.com/g/golang-announce/c/x49AQzIVX-s, https://go.dev/issue/54385, https://go.dev/cl/423514
Affected packages
Package
Name: stdlib
Purl: pkg:golang/stdlib
Affected ranges
Type: SEMVER
Events:
Introduced- 1.19.0-0
Fixed -1.19.1
Affected versions
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
