{"id":"GHSA-vcvr-r3jv-pc5j","revision":"85f06d18ad93484daaa2f09de125a745","records":[{"revision":"85f06d18ad93484daaa2f09de125a745","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-vcvr-r3jv-pc5j","aliases":[],"title":"Next.js: Remote Code Execution in next/og ImageResponse","description":"## 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`.","state":0,"publishedAt":"2026-09-30T14:48:30+00:00","modifiedAt":"2026-10-01T03:56:48.6834942+00:00","affected":[{"ecosystem":"npm","name":"next","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"16.2.0"},{"kind":"fixed","version":"16.3.6"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","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","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"CRITICAL"}],"references":["https://github.com/vercel/next.js/security/advisories/GHSA-vcvr-r3jv-pc5j","https://github.com/vercel/satori/security/advisories/GHSA-wx4j-mvgx-mqwp","https://github.com/vercel/next.js/commit/868fad38690d72088868f299fa2bef339b26838e","https://github.com/vercel/next.js","https://github.com/vercel/next.js/releases/tag/v16.3.6"],"sourceUrl":"https://github.com/advisories/GHSA-vcvr-r3jv-pc5j","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-vcvr-r3jv-pc5j","identifiers":["GHSA-vcvr-r3jv-pc5j"]},"retained":false,"historicalAffected":[]}],"coverage":[]}