next is vulnerable to Remote Code Execution (RCE)
95
CVE Score
Critical
Remote Code Execution (RCE)
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.
Upgrade the next library to the patch version.
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.
16.2.0 - 16.3.5
Fixed in 16.3.6next is vulnerable to Remote Code Execution (RCE) in versions 16.2.0 - 16.3.5.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
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.