All reports
High

XSS in Image Optimization API for Next.js

Affected versions

Affected versions
>= 10.0.0, < 11.1.1
Fixed version
11.1.1

Exploitation

CVE-2021-39178

Probability of exploitation in the next 30 days: 1.14%

FIRST EPSS · 2026-11-21

Description

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

Links

Credits

  • tdunlap607