A flaw in the Node.js implementation of the `ImageResponse` component within the `next/og` package occurs due to improper encoding or escaping of output data. This issue arises when attacker-controlled values are passed into SVG content, attributes, or styles during the dynamic generation of images, such as Open Graph social preview cards. An unauthenticated remote attacker can exploit this by injecting malicious markup into the generated SVG, which can lead to memory corruption in native image libraries (such as `sharp`, `libvips`, `librsvg`, and `libxml2`) and ultimately result in remote code execution on the server. The Edge runtime implementation and configurations that do not use the `sharp` library are not affected.