Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. next
  4. ›
  5. GHSA-vcvr-r3jv-pc5j

GHSA-vcvr-r3jv-pc5j: Next.js: Remote Code Execution in next/og ImageResponse

September 30, 2026

The Node.js ImageResponse implementation from next/og is affected by an upstream vulnerability. This can lead to remote code execution.

Affected applications pass attacker-controlled values into SVG content, attributes, or styles during image generation:

import { ImageResponse } from 'next/og'

export async function GET(request: Request) {
const value = new URL(request.url).searchParams.get('value') ?? ''

return new ImageResponse(
<svg width="1200" height="630">
<title>{value}</title>
</svg>
)
}

Applications using the Edge ImageResponse implementation, or applications that do not pass attacker-controlled values into SVG content, attributes, or styles, are not affected.

References

  • github.com/advisories/GHSA-vcvr-r3jv-pc5j
  • github.com/vercel/next.js/commit/868fad38690d72088868f299fa2bef339b26838e
  • github.com/vercel/next.js/releases/tag/v16.3.6
  • github.com/vercel/next.js/security/advisories/GHSA-vcvr-r3jv-pc5j
  • github.com/vercel/satori/security/advisories/GHSA-wx4j-mvgx-mqwp

Code Behaviors & Features

Detect and mitigate GHSA-vcvr-r3jv-pc5j with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 16.2.0 before 16.3.6

Fixed versions

  • 16.3.6

Solution

Upgrade to version 16.3.6 or above.

Impact 10 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-1395: Dependency on Vulnerable Third-Party Component

Source file

npm/next/GHSA-vcvr-r3jv-pc5j.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 12 Oct 2026 12:17:01 +0000.