Advisory

GHSA-9gr3-7897-pp7m

Also known as: CVE-2021-39178

Summary

XSS in Image Optimization API for Next.js

Details

Impact

  • Affected: All of the following must be true to be affected - Next.js between version 10.0.0 and 11.1.0 - The next.config.js file has `images.domains` array assigned - The image host assigned in `images.domains` allows user-provided SVG
  • Not affected: The next.config.js file has `images.loader` assigned to something other than default
  • Not affected: Deployments on Vercel are not affected

Patches
Next.js v11.1.1

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-09-01 18:24 UTC
Modified
2026-07-08 06:27 UTC

Affected packages and fixes

next

npm · All systems

Affected

  • introduced 10.0.0, fixed 11.1.1 (semver)

Fixed versions

11.1.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences