no-dangerously-allow-svg
Next.js image configuration enables SVG rendering without the required response hardening
Why
SVG files can contain scripts and other active content; enabling dangerouslyAllowSVG makes the image optimizer serve that content from the application origin.
Fix
Keep dangerouslyAllowSVG disabled. If SVG optimization is required, retain attachment disposition and set the image Content-Security-Policy to script-src 'none'; sandbox;.
Examples
export default { images: { dangerouslyAllowSVG: true } };export default { images: { dangerouslyAllowSVG: false } };