CVE-2022-23646
published medium CVSS 3.1 · 5.9Improper CSP in Image Optimization API for Next.js
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| vercel | — | next.js>= 10.0.0, < 12.1.0 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| vercel | next.js | >= 10.0.0, < 12.1.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-451 CWE-451: User Interface (UI) Misrepresentation of Critical Information
References
3Provider assertions
3GitHub_M · cna
Improper CSP in Image Optimization API for Next.js
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- c24a6ca4fe5e239441eacfe5e02d9ed7c08579d384a467031f52fc83ea02ed9f
- Ingested
- 23 Sep 2026, 07:58:41 UTC
- Source record
- Official CVE record