PT-2021-22436 · Vercel · Vercel
Styfle
·
Published
2021-08-30
·
Updated
2021-09-08
·
CVE-2021-39178
CVSS v3.1
7.5
High
| Vector | AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Next.js versions 10.0.0 through 11.0.0
Description
Next.js is a React framework that contains a cross-site scripting issue. For an instance to be affected, the
next.config.js file must have the images.domains array assigned, and the image host in images.domains must allow user-provided SVG. The instance is not affected if the next.config.js file has images.loader assigned to something other than default or if it is deployed on Vercel.Recommendations
For Next.js versions 10.0.0 through 11.0.0, update to version 11.1.1 to resolve the issue.
As a temporary workaround, consider modifying the
next.config.js file to assign images.loader to something other than default, or restrict the use of user-provided SVG in the images.domains array until a patch is applied.Fix
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Vercel