ADVISORIES

Go Vulnerability Database

GO-2023-1878

Insufficient sanitization of Host header in net/http

Details

The HTTP/1 client does not fully validate the contents of the Host header. A maliciously crafted Host header can inject additional headers or entire requests.

With fix, the HTTP/1 client now refuses to send requests containing an invalid Request.Host or Request.URL.Host value.

Affected packages

EcosystemPackageAffected versions
Gostdlib
All versions before 1.19.11 (fixed in 1.19.11)
From 1.20.0-0 before 1.20.6 (fixed in 1.20.6)

References