next is vulnerable to Remote Code Execution (RCE)
95
Critical Risk
The Node.js ImageResponse implementation in next/og renders JSX through Satori into SVG and then into a PNG. Satori does not properly escape attacker-controlled values that land in SVG content, attributes, or styles, so that output can be interpreted as SVG markup rather than text. When those values flow into other Node.js rasterization dependencies, this becomes remote code execution in the Next.js process. The Edge ImageResponse path is not affected. The fix upgrades Satori and hardens next/og SVG serialization.
You are affected if you are using a version that falls within the vulnerable range and your application uses the Node.js ImageResponse implementation from next/og with attacker-controlled values in SVG content, attributes, or styles.
next is vulnerable to Remote Code Execution (RCE) in versions 16.2.0 - 16.3.5.
Upgrade the next library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.