Astro: Netlify Image CDN allowlist bypass enables SSRF
The @astrojs/netlify adapter generated regular expressions for Netlify Image CDN remote-image allowlists without anchoring them to the beginning of the URL. Netlify evaluates these expressions with RegExp.test(), so an allowed image origin appearing anywhere in a URL, including its path or query string, could satisfy the allowlist. For example, an application allowing images.example.com could accept a source URL such as: http://127.0.0.1:6379/?url=https://images.example.com/image.png The allowlist matched the approved origin in the query …