Next.js ImageResponse RCE: Patch 16.3.6 Now — September 22, 2026
Next.js published an out-of-band security update on September 22, 2026 for a critical remote-code-execution issue affecting the Node.js ImageResponse implementation in next/og. The official advisory says Next.js versions >=16.2.0 and <16.3.6 are affected; 16.3.6 is the patched Active LTS release. Next.js 15.x is not affected by this RCE, although 15.5.26 includes related hardening. Applications using the Edge ImageResponse implementation are not affected by this issue. If a production app runs an affected Next.js 16 version, upgrade to 16.3.6, rebuild and redeploy the actual production artifact, then verify image-generation paths and the rest of the critical application workflow without attempting to reproduce the exploit.
A Next.js 16.2 or 16.3 application uses ImageResponse from next/og in the Node.js runtime
Your production project is still on a Next.js version from 16.2.0 through 16.3.5
You saw the September 22 out-of-band release and need to know whether Next.js 15 or Edge ImageResponse is affected
Possible causes
The official Next.js advisory attributes the issue to improper escaping in SVG output generated by the upstream Satori dependency under specific conditions
The vulnerable path affects the Node.js ImageResponse implementation in next/og
Other upstream dependency behavior can turn the unsafe generated output into remote code execution under the affected conditions
The patched Next.js release upgrades the relevant upstream dependencies
HOW TO FIX IT
Work from the safest step to the harder repair.
Step 1. Identify the exact Next.js version in the production lockfile and deployed build. The official September 22 advisory lists versions >=16.2.0 and <16.3.6 as affected.
Step 2. Check whether the application uses ImageResponse from next/og and whether that path runs in the Node.js implementation. The advisory says the Edge ImageResponse implementation is not affected by this issue.
Step 3. For Next.js 16.3, upgrade to 16.3.6 using the project's normal package-management workflow, regenerate the lockfile if required, and review the dependency diff before committing it.
Step 4. If the application is on Next.js 15.5, the advisory says 15.x is not affected by this RCE, but 15.5.26 includes related hardening. Evaluate that update through the normal maintenance process rather than falsely labeling the 15.x app vulnerable to this specific RCE.
Step 5. Run the full typecheck, automated tests and production build. Exercise routes that generate Open Graph, social, certificate, report, badge or other images through ImageResponse, because those are the paths most directly connected to the affected component.
Step 6. Deploy from a recoverable checkpoint and verify the actual production version after the rollout. A changed package.json in source control is not proof that every running production instance is patched.
Step 7. Review logs for failures or anomalous requests around ImageResponse endpoints without collecting or publishing attack payloads. If there is credible evidence of exploitation, move from routine patching to the organization's incident-response process.
Step 8. Keep this issue separate from the August 2026 Next.js Windows filesystem RCE and AVIF/libheif image-optimization issues. They have different affected conditions and patched versions, so one patch article should not be used as proof that every other advisory is resolved.
Need the actual code? Go to GenesisCodeDoctor.com to search the Code Store or request code for the exact platform, error, and repair you are working on.
Patch through the normal dependency workflow and preserve a rollback point before production deployment.
Keep request bodies, generated SVG content, logs and security-testing artifacts free of secrets, tokens and private user data.
Use authorized security validation only; this guide intentionally omits exploit payloads and reproduction steps.
STOP AND GET HELP WHEN
Do not turn a repair into a larger outage.
Do not attempt to reproduce the remote-code-execution path on a production system merely to prove vulnerability.
Do not claim every Next.js 15.x application is vulnerable; the official September 22 notice says 15.x is not affected by this RCE.
Do not claim Edge ImageResponse is affected by this issue; Next.js says the Edge implementation is not affected.
Do not stop at editing the dependency manifest. Verify the lockfile, built artifact and production deployment actually contain the patched version.
HOW GENESIS HANDLES IT
Diagnose the exact failure before choosing a repair.
Genesis separates the visible symptom from the underlying technical cause. Run the supported diagnostic first, review the evidence, and then use a matching repair only when the failure is actually verified.
Platform scope
Next.js 16.2–16.3 applications using Node.js ImageResponse from next/og
Category
Next.js · Security releases
Last updated
2026-09-22
REPAIR PROFILE
Know the complexity before you edit.
Difficulty
Intermediate
Change risk
High
These labels describe implementation complexity and blast radius, not a guaranteed repair time.
AUTHORITATIVE SOURCES
Verify time-sensitive platform details at the source.
Once you know the platform and the verified problem, search the Genesis Code Doctor Code Store for a matching package. If the exact integration or repair is not there, use Request a Code and describe the platform, official documentation, desired behavior, and sanitized error—never send your secret key.
Start with a free diagnostic. If Genesis verifies a problem and a compatible treatment exists, continue to the matching Code Store product or repair path. If you cannot find the exact code you need, request it at GenesisCodeDoctor.com rather than forcing a generic snippet into the wrong platform.