Lack of data validation - Path Traversal In golang-1.19
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.
Mitigation
Update Impact
Minimal update. May introduce new vulnerabilities or breaking changes.
Ecosystem | Package | Affected version | Patched versions |
|---|---|---|---|
debian 12 | 1.19.1-1 | ||
go | 1.19.1 |
Aliases
1. 2. 3. 4. 5. 6. 7.
References
1. 2. 3.