CVE-2021-39178 Details
Description
Next.js is a React framework. Versions of Next.js between 10.0.0 and 11.0.0 contain a cross-site scripting vulnerability. In order for an instance to be affected by the vulnerability, the `next.config.js` file must have `images.domains` array assigned and the image host assigned in `images.domains` must allow user-provided SVG. If the `next.config.js` file has `images.loader` assigned to something other than default or the instance is deployed on Vercel, the instance is not affected by the vulnerability. The vulnerability is patched in Next.js version 11.1.1.
A cross-site scripting vulnerability has been identified in Next.js, a React framework, affecting versions 10.0.0 prior to 11.1.0. The issue arises when the 'next.config.js' file includes an 'images.domains' array that allows user-provided SVGs. Instances deployed on Vercel or with a non-default 'images.loader' are not vulnerable.
Users can upgrade to Next.js version 11.1.1 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/vercel/next.js/releases/tag/v11.1.1 | CVE | PatchRelease NotesThird Party Advisory |
| https://github.com/vercel/next.js/security/advisories/GHSA-9gr3-7897-pp7m | CVE | PatchThird Party Advisory |
| https://github.com/vercel/next.js/releases/tag/v11.1.1 | [email protected] | PatchRelease NotesThird Party Advisory |
| https://github.com/vercel/next.js/security/advisories/GHSA-9gr3-7897-pp7m | [email protected] | PatchThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| vercel next.js | >= 10.0.0, < 11.1.1 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Sep 8, 2021 | Initial Analysis | [email protected] |