Go Vulnerability Database
GO-2022-0211
Incorrect parsing validation in net/url
Details
The url.Parse function accepts URLs with malformed hosts, such that the Host field can have arbitrary suffixes that appear in neither Hostname() nor Port(), allowing authorization bypasses in certain applications.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | stdlib | All versions before 1.11.13 (fixed in 1.11.13) From 1.12.0-0 before 1.12.8 (fixed in 1.12.8) |