GHSA-VCVR-R3JV-PC5J: next Npm
Vulnerability summary
GHSA-VCVR-R3JV-PC5J is a critical (CVSS 9.5) vulnerability in next Npm.
Severe, CVSS 9.5 (OSV · Npm); no exploitation reported by the 5 checked sources; EPSS not yet published
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 6 · Related 1Timeline
- 30-09-2026PublishedVulnerability first disclosed.
- 01-10-2026Last modifiedVulnerability information updated.
Description
Next.js: Remote Code Execution in next/og ImageResponse ## Impact 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: ```tsx 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. ## Workaround If 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`.
CVSS metrics
1 score · 1 source · 1 versionEPSS trend
No EPSS score has been published for this record yet.
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeNo weakness data has been published for this record.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Npm1 product
- next≥ 16.2.0, < 16.3.6
1 vendor · 1 product
References
5 links- github.com/vercel/next.jsPACKAGE