In more detail
Features that fetch a user-supplied URL, such as link previews or webhooks, can be aimed at localhost, private network ranges or cloud metadata services that the attacker cannot reach directly. Defences: resolve the hostname first and refuse private and loopback addresses, allow only needed schemes, and do not follow redirects blindly.