# CVE-2022-23646: Improper CSP in Image Optimization API for Next.js

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.80%, higher than 79% of CVEs (2026-12-01)
- Published: 2022-02-17T17:19:18.000Z
- Modified: 2026-06-17T04:30:33.360Z
- Also known as: GHSA-fmvm-x8mv-47mj
- Weaknesses: CWE-451
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- vercel next.js: >= 10.0.0, < 12.1.0; from 10.0.0 before 12.1.0
- next (npm): from 10.0.0 before 12.1.0

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/vercel/next.js/security/advisories/GHSA-fmvm-x8mv-47mj> (issue-tracking, mitigation, patch, third-party-advisory, web)
- <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://nvd.nist.gov/vuln/detail/CVE-2022-23646> (advisory)
- <https://github.com/vercel/next.js> (package)

## Sources

- CVE List: [CVE-2022-23646](https://www.cve.org/CVERecord?id=CVE-2022-23646), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-fmvm-x8mv-47mj](https://github.com/advisories/GHSA-fmvm-x8mv-47mj), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-23646](https://nvd.nist.gov/vuln/detail/CVE-2022-23646), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-23646 · Whole record: https://cve.day/CVE-2022-23646.json · Rebuilt by cve.day 2026-11-25T22:58:09.738Z
