{"id":"GHSA-9gr3-7897-pp7m","revision":"f7a0e79a09ce4715bbc3e29841582d3f","records":[{"revision":"f7a0e79a09ce4715bbc3e29841582d3f","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-9gr3-7897-pp7m","aliases":["CVE-2021-39178"],"title":"XSS in Image Optimization API for Next.js","description":"### Impact\n- **Affected:** All of the following must be true to be affected\n    - Next.js between version 10.0.0 and 11.1.0\n    - The `next.config.js` file has [`images.domains`](https://nextjs.org/docs/basic-features/image-optimization#domains) array assigned\n    - The image host assigned in [`images.domains`](https://nextjs.org/docs/basic-features/image-optimization#domains) allows user-provided SVG\n- **Not affected**: The `next.config.js` file has [`images.loader`](https://nextjs.org/docs/basic-features/image-optimization#loader) assigned to something other than default\n- **Not affected**: Deployments on [Vercel](https://vercel.com) are not affected\n\n### Patches\n[Next.js v11.1.1](https://github.com/vercel/next.js/releases/tag/v11.1.1)\n\n","state":0,"publishedAt":"2021-09-01T18:24:22+00:00","modifiedAt":"2026-07-08T06:27:32.5754637+00:00","affected":[{"ecosystem":"npm","name":"next","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"10.0.0"},{"kind":"fixed","version":"11.1.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/vercel/next.js/security/advisories/GHSA-9gr3-7897-pp7m","https://nvd.nist.gov/vuln/detail/CVE-2021-39178","https://github.com/vercel/next.js/pull/28620","https://github.com/vercel/next.js/commit/7afc97c5744b38bdf36aa7f87625f438224688aa","https://github.com/vercel/next.js","https://github.com/vercel/next.js/releases/tag/v11.1.1"],"sourceUrl":"https://github.com/advisories/GHSA-9gr3-7897-pp7m","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-9gr3-7897-pp7m","identifiers":["GHSA-9gr3-7897-pp7m","CVE-2021-39178"]},"retained":false,"historicalAffected":[]}],"coverage":[]}