VDB
Sign up
CRITICAL9.8

GO-2022-0211

Incorrect parsing validation in net/url

Quick fix

GO-2022-0211 — stdlib: upgrade to the fixed version with the command below.

go get stdlib@v1.11.13

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/stdlib
Introduced in: 0Fixed in: 1.11.13
Fixgo get stdlib@v1.11.13

References