CVE-2022-23646
HIGH 7.5CVSS 3.1Improper CSP in Image Optimization API for Next.js versions between 10.0.0 and 12.1.0
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.
- Published
- 17 Feb 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-451
- Also known as
- GHSA-fmvm-x8mv-47mj
- Sources
- NVDJSONOSV GHSA-fmvm-x8mv-47mjJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | vercel | next.jscpe:2.3:a:vercel:next.js:*:*:*:*:*:node.js:*:* |
>= 10.0.0, < 12.1.0 | 12.1.0 |
| OSV | npm | next | >= 10.0.0, < 12.1.0 | 12.1.0 |
References
- https://github.com/vercel/next.js/pull/34075 · Issue Tracking, Patch, Third Party Advisory, WEB
- https://github.com/vercel/next.js/releases/tag/v12.1.0 · Release Notes, Third Party Advisory, WEB
- https://github.com/vercel/next.js/security/advisories/GHSA-fmvm-x8mv-47mj · Issue Tracking, Mitigation, Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-23646 · ADVISORY
- https://github.com/vercel/next.js · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 17 Feb 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 17 Feb 2022)