Related Vulnerabilities: CVE-2019-14809  

An issue has been found in Go before 1.12.8, where url.Parse would accept URLs with malformed hosts, such that the Host field could have arbitrary suffixes that would appear in neither Hostname() nor Port(), allowing authorization bypasses in certain applications. Note that URLs with invalid, not numeric ports will now return an error from url.Parse.

Severity Medium

Remote Yes

Type Insufficient validation

Description

An issue has been found in Go before 1.12.8, where url.Parse would accept URLs with malformed hosts, such that the Host field could have arbitrary suffixes that would appear in neither Hostname() nor Port(), allowing authorization bypasses in certain applications. Note that URLs with invalid, not numeric ports will now return an error from url.Parse.

AVG-1021 go 2:1.12.7-1 Medium Vulnerable

AVG-1020 go-pie 2:1.12.7-1 Medium Vulnerable

https://golang.org/issue/29098