{"api_version":"1","generated_at":"2026-05-13T21:18:37+00:00","cve":"CVE-2022-23646","urls":{"html":"https://cve.report/CVE-2022-23646","api":"https://cve.report/api/cve/CVE-2022-23646.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-23646","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-23646"},"summary":{"title":"CVE-2022-23646","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-02-17 21:15:00","updated_at":"2022-02-25 17:44:00"},"problem_types":["CWE-451"],"metrics":[],"references":[{"url":"https://github.com/vercel/next.js/releases/tag/v12.1.0","name":"https://github.com/vercel/next.js/releases/tag/v12.1.0","refsource":"MISC","tags":["Release Notes","Third Party Advisory"],"title":"Release v12.1.0 · vercel/next.js · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/vercel/next.js/security/advisories/GHSA-fmvm-x8mv-47mj","name":"https://github.com/vercel/next.js/security/advisories/GHSA-fmvm-x8mv-47mj","refsource":"CONFIRM","tags":["Issue Tracking","Mitigation","Patch","Third Party Advisory"],"title":"Improper CSP in Image Optimization API for Next.js versions between 10.0.0 and 12.0.10 · Advisory · vercel/next.js · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/vercel/next.js/pull/34075","name":"https://github.com/vercel/next.js/pull/34075","refsource":"MISC","tags":["Issue Tracking","Patch","Third Party Advisory"],"title":"Update to leverage response-cache for image-optimizer by ijjk · Pull Request #34075 · vercel/next.js · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-23646","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23646","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"23646","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"vercel","cpe5":"next.js","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-23646","STATE":"PUBLIC","TITLE":"Improper CSP in Image Optimization API for Next.js"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"next.js","version":{"version_data":[{"version_value":">= 10.0.0, < 12.1.0"}]}}]},"vendor_name":"vercel"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.9,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-451: User Interface (UI) Misrepresentation of Critical Information"}]}]},"references":{"reference_data":[{"name":"https://github.com/vercel/next.js/security/advisories/GHSA-fmvm-x8mv-47mj","refsource":"CONFIRM","url":"https://github.com/vercel/next.js/security/advisories/GHSA-fmvm-x8mv-47mj"},{"name":"https://github.com/vercel/next.js/pull/34075","refsource":"MISC","url":"https://github.com/vercel/next.js/pull/34075"},{"name":"https://github.com/vercel/next.js/releases/tag/v12.1.0","refsource":"MISC","url":"https://github.com/vercel/next.js/releases/tag/v12.1.0"}]},"source":{"advisory":"GHSA-fmvm-x8mv-47mj","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-02-17 21:15:00","lastModifiedDate":"2022-02-25 17:44:00","problem_types":["CWE-451"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:N/I:P/A:N","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"NONE","baseScore":4.3},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:vercel:next.js:*:*:*:*:*:node.js:*:*","versionStartIncluding":"10.0.0","versionEndExcluding":"12.1.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2022","CveId":"23646","Ordinal":"226451","Title":"CVE-2022-23646","CVE":"CVE-2022-23646","Year":"2022"},"notes":[{"CveYear":"2022","CveId":"23646","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}