{"schemaVersion":3,"id":"GHSA-VCVR-R3JV-PC5J","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"Next.js: Remote Code Execution in next/og ImageResponse\n\n## Impact\n\nThe Node.js `ImageResponse` implementation from `next/og` is affected by an upstream vulnerability. This can lead to remote code execution.\n\nAffected applications pass attacker-controlled values into SVG content, attributes, or styles during image generation:\n\n```tsx\nimport { ImageResponse } from 'next/og'\n\nexport async function GET(request: Request) {\n  const value = new URL(request.url).searchParams.get('value') ?? ''\n\n  return new ImageResponse(\n    <svg width=\"1200\" height=\"630\">\n      <title>{value}</title>\n    </svg>\n  )\n}\n```\n\nApplications using the Edge `ImageResponse` implementation, or applications that do not pass attacker-controlled values into SVG content, attributes, or styles, are not affected.\n\n## Workaround\n\nIf upgrading is not immediately possible, do not pass attacker-controlled values into SVG content, attributes, or styles rendered by the Node.js `ImageResponse` implementation from `next/og`.","dates":{"published":"2026-09-30T14:48:30.000Z","modified":"2026-10-01T03:56:48.683Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.5,"severity":"critical","version":"4.0","versionLabel":"v4.0","source":"OSV · Npm","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","computed":true,"selection":"version-preference"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"OSV · Npm","score":9.5,"severity":"critical","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","exploitability":null,"impact":null,"computed":true}]},"epss":{"probability":null,"percentile":null,"severity":"unknown","asOf":null,"change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[],"last30":[]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[],"affected":[{"vendor":"Npm","product":"next","name":"next","label":"next","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/next","purlType":"npm","versions":[{"text":"≥ 16.2.0, < 16.3.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 16.2.0, < 16.3.6","eol":{"isEol":null,"eolDate":null,"matchMethod":"purl","cycle":null,"product":{"name":"nextjs","label":"Next.js","category":"framework"}},"hubHref":null}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/vercel/next.js/security/advisories/GHSA-vcvr-r3jv-pc5j","label":"github.com/vercel/next.js/security/advisories/GHSA-vcvr-r3jv-pc5j","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/vercel/satori/security/advisories/GHSA-wx4j-mvgx-mqwp","label":"github.com/vercel/satori/security/advisories/GHSA-wx4j-mvgx-mqwp","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/vercel/next.js/commit/868fad38690d72088868f299fa2bef339b26838e","label":"github.com/vercel/next.js/commit/868fad38690d72088868f299fa2bef339b26838e","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/vercel/next.js","label":"github.com/vercel/next.js","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/vercel/next.js/releases/tag/v16.3.6","label":"github.com/vercel/next.js/releases/tag/v16.3.6","hostname":"github.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["CGA-44P6-6H83-PP6R","CGA-7QRW-H5FW-455H","CGA-8R5X-W2GF-JR48","CGA-H69R-C89F-596H","CGA-RW3G-GP5X-H2WP","CGA-RWJH-F96G-9FRC"],"duplicates":[],"related":["CVE-2026-94545"]},"timeline":[{"kind":"published","date":"2026-09-30T14:48:30.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-01T03:56:48.683Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T09:40:33.190Z","stale":false,"partial":false}}