MEDIUM6.5
GO-2023-1878
Insufficient sanitization of Host header in net/http
Quick fix
GO-2023-1878 — stdlib: upgrade to the fixed version with the command below.
go get stdlib@v1.19.11Details
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.
Are you affected?
Enter the version of the package you're using.