CVE-2022-23646 Details
Description
Next.js is a React framework. Starting with version 10.0.0 and prior to version 12.1.0, Next.js is vulnerable to User Interface (UI) Misrepresentation of Critical Information. In order to be affected, the `next.config.js` file must have an `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, the instance is not affected. Version 12.1.0 contains a patch for this issue. As a workaround, change `next.config.js` to use a different `loader configuration` other than the default.
A vulnerability allowing user interface misrepresentation of critical information has been identified in Next.js, a React framework. This issue affects versions 10.0.0 prior to 12.1.0. The vulnerability arises when the 'next.config.js' file includes an 'images.domains' array with a host that permits user-uploaded SVGs. If the 'images.loader' is set to anything other than the default, the vulnerability does not apply. Exploitation of this vulnerability could lead to improper handling of content security policies in the image optimization API, potentially allowing malicious SVGs to be processed.
Users can upgrade to Next.js version 12.1.0, which addresses this vulnerability. Alternatively, as a workaround, the 'next.config.js' file can be modified to use a different loader configuration than the default.
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.
CISA-ADP
Assessed Apr 23, 2025References 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/pull/34075 | CVE | Issue TrackingPatchThird Party Advisory |
| https://github.com/vercel/next.js/releases/tag/v12.1.0 | CVE | Release NotesThird Party Advisory |
| https://github.com/vercel/next.js/security/advisories/GHSA-fmvm-x8mv-47mj | CVE | Issue TrackingMitigationPatchThird Party Advisory |
| https://github.com/vercel/next.js/pull/34075 | [email protected] | Issue TrackingPatchThird Party Advisory |
| https://github.com/vercel/next.js/releases/tag/v12.1.0 | [email protected] | Release NotesThird Party Advisory |
| https://github.com/vercel/next.js/security/advisories/GHSA-fmvm-x8mv-47mj | [email protected] | Issue TrackingMitigationPatchThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-451 | User Interface (UI) Misrepresentation of Critical Information | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| vercel next.js | >= 10.0.0, < 12.1.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Feb 25, 2022 | Initial Analysis | [email protected] |