Advisory

GHSA-mpf7-p9x7-96r3

Details, part 2 of 2. The advisory

Details

return err == nil && (u.Scheme == "http" || u.Scheme == "https") && u.Hostname() != ""
}

This fix should mitigate the reported SSRF.

Sources & licences