{"id":"CVE-2022-23646","published":"2022-02-17T20:35:12Z","modified":"2025-04-23T19:02:50Z","title":"Improper CSP in Image Optimization API for Next.js","vendor":"vercel","product":"next.js","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01795,"percentile":0.78965,"provenance":"source"},"cwes":[{"id":"CWE-451","name":"User Interface (UI) Misrepresentation of Critical Information"}],"references":[{"url":"https://github.com/vercel/next.js/security/advisories/GHSA-fmvm-x8mv-47mj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vercel/next.js/pull/34075","tags":["x_refsource_MISC"]},{"url":"https://github.com/vercel/next.js/releases/tag/v12.1.0","tags":["x_refsource_MISC"]}],"priority":{"score":19.9,"factors":[{"name":"EPSS percentile","points":15.79},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"vercel","affectedVersions":[{"vendor":"vercel","product":"next.js","versions":[">= 10.0.0, < 12.1.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-23T14:10:23.654047Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"next","vulnerableRanges":[">=10.0.0, <12.1.0"],"patched":["12.1.0"],"from":["GHSA-fmvm-x8mv-47mj"],"provenance":"source"}],"summary":{"text":"Next.js, a React framework, has a flaw in its Image Optimization API that causes misrepresentation of critical information in the user interface, affecting versions from 10.0.0 up to but not including 12.1.0. An attacker with network access and no privileges can exploit it without any user interaction, but only where the next.config.js file defines an images.domains array whose listed image host permits user-provided SVG files and the images.loader setting is left at its default.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:16:41Z"},"euvd":{"id":"EUVD-2022-0986","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-39178","published":"2021-08-30","fixed":"11.1.1","kev":false},{"cve":"CVE-2021-43803","published":"2021-12-09","fixed":"12.0.5","kev":false},{"cve":"CVE-2022-21721","published":"2022-01-28","fixed":"12.0.9","kev":false,"link":{"from":"CVE-2022-21721","to":"CVE-2022-23646","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:next","fromFixed":"12.0.9","toFixed":"12.1.0","daysApart":20}]}},{"cve":"CVE-2022-23646","published":"2022-02-17","fixed":"12.1.0","kev":false},{"cve":"CVE-2022-36046","published":"2022-08-31","fixed":"12.2.4","kev":false},{"cve":"CVE-2023-46298","published":"2023-10-22","fixed":"13.4.20-canary.13","kev":false},{"cve":"CVE-2024-39693","published":"2024-07-10","fixed":"13.5.0","kev":false}],"package":"npm:next"}}