HighVulnerabilityGHSA-9gr3-7897-pp7mCVE-2021-39178Published 1 Sep 2021
XSS in Image Optimization API for Next.js
Affected releases · next
- 11.x11.0.0 – 11.1.0Fixed in 11.1.1
- 10.x10.0.0 – 10.2.3No fix on this line yet
On 11.x, the newest line:
npm install next@11.1.116.x
Not affected
16.0.0 – 16.4.2
45 releases, latest
11.x
Affected
11.0.0 – 11.1.0
3 releases
Fixed
11.1.1 – 11.1.4
4 releases
10.x
Affected
10.0.0 – 10.2.3
18 releases
Is your project affected?
Paste your package.json, or type the range you declare for next. It is read in your browser and sent nowhere.
What happens
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.jsfile hasimages.domainsarray assignedThe image host assigned in
images.domainsallows user-provided SVG
Not affected: The
next.config.jsfile hasimages.loaderassigned to something other than defaultNot affected: Deployments on Vercel are not affected
Patches