Advisory

GHSA-5g86-85rp-f9hx

Details, part 2 of 2. The advisory

Details

const response = await ofetch.raw<unknown>(url, {
  ...options,
  redirect: 'manual',       // do not follow redirects
  ignoreResponseError: true,
});

If redirect-following is ever required in the future, validate the Location header through the existing isUrlSsrfSafe() check before re-issuing the request.

Sources & licences