GO-2022-0988

Source
https://pkg.go.dev/vuln/GO-2022-0988
Import Source
https://vuln.go.dev/ID/GO-2022-0988.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2022-0988
Aliases
Published
2022-09-12T20:23:15Z
Modified
2024-05-20T16:03:47Z
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.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2022-0988"
}
References
Credits
    • @q0jt

Affected packages

Go / stdlib

Package

Affected ranges

Type
SEMVER
Events
Introduced
1.19.0-0
Fixed
1.19.1

Ecosystem specific

{
    "imports": [
        {
            "path": "net/url",
            "symbols": [
                "JoinPath",
                "URL.JoinPath"
            ]
        }
    ]
}