CVE-2022-23646 json
Improper CSP in Image Optimization API for Next.js
published 4y ago modified 4mo ago also EUVD-2022-0986 , GHSA-fmvm-x8mv-47mj
- cvss
- 5.9
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.8%
- EPSS 1.8% chance of exploitation in 30 days, percentile 78%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm next 12.1.0
- vercel next.js 12.1.0
Is CVE-2022-23646 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
1.80% chance of exploitation in the next 30 days, higher than 78% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| GitHub | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | next | >=10.0.0, <12.1.0 |
12.1.0 |
Affected products
- vercel next.js
Classification
- Weakness
-
- CWE-451 User Interface (UI) Misrepresentation of Critical Information
- Technology feeds
References
-
github.com
/vercel/next.js/pull/34075
web, issue-tracking, patch, third-party-advisory
-
github.com
/vercel/next.js/security/advisories/GHSA-fmvm-x8mv-47mj
web, issue-tracking, mitigation, patch, third-party-advisory, advisory
-
github.com
/vercel/next.js/releases/tag/v12.1.0
web, release-notes, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-23646
advisory
-
github.com
/vercel/next.js
package
Sources
- CVE List CVE-2022-23646
- GitHub Advisory GHSA-fmvm-x8mv-47mj
- NVD CVE-2022-23646
- Maintainer advisory GHSA-fmvm-x8mv-47mj
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
The maintainers of vercel/next.js published their own advisory on GitHub. Reviewed sources take precedence over it.