Generated stack · Vercel
Next.js
React framework generated by v0, Bolt and others.
14Advisories
7critical
6high
1medium
2026-10-21Latest
Next.js CVEs & security
Is Next.js safe?
Next.js is the framework under many AI-built apps (v0, Bolt and others). Our entries cover both Next.js bugs, several of them unauthenticated remote code execution, and common app-level mistakes.
We track 14 security advisories that affect Next.js: 12 name Next.js directly and 2 are related patterns that show up in apps or workflows built with it. By severity: 7 critical, 6 high and 1 medium. 8 of them have a CVE ID. The most common kinds are code execution (7), broken access control (3) and SSRF & network (2). The newest entry is dated 2026-10-21.
Newest entries on this page
Using Next.js safely
- Stay on the latest patch release of your Next.js major version. Each advisory below lists the fixed versions.
- If you use Image Optimization or next/og, upgrade first: several of the code-execution bugs are in those features.
- Don't rely on middleware alone for auth. Check the session again in route handlers and server actions.
- Never put secrets in NEXT_PUBLIC_ variables. They are bundled into the browser JavaScript.
- Keep the Node.js runtime under Next.js patched too.
Timeline · advisories per quarter
22025 Q1
22026 Q2
42026 Q3
62026 Q4
Named in sources
Reported for Next.js
01. CVE-2026-96889: Next.js image optimization RCE via SVGA memory bug in an upstream library used by Next.js Image Optimization can lead to unauthenticated remote code execution when SVG files are processed and Next.js runs on glibc-based Linux. Fixed in 16.4.1 and 15.5.28.
Next.js 2026-10-14 02. Next.js ‘use cache’ remote code execution via typed arraysNext.js 16 apps using the App Router with Cache Components can be open to unauthenticated remote code execution when a ‘use cache’ function returns multiple typed arrays. There is no workaround; upgrade to 16.4.1.
Next.js 2026-10-14 03. Next.js: Remote Code Execution in next/og ImageResponseThe Node.js ImageResponse implementation from next/og is affected by an upstream vulnerability. This can lead to remote code execution.
Next.js 2026-09-30 04. CVE-2026-75604: Next.js: Unauthenticated Remote Code Execution on windows-hosted serversA vulnerability in applications using Pages and App router without Cache Component can lead to remote code execution when the server is hosted on machines using a Windows filesystem.
Next.js 2026-09-08 05. Next.js: Unauthenticated Remote Code Execution in Image Optimization API when AVIF files are usedA vulnerability in the underlying libheif library used by sharp which Next.js uses for image optimization can lead to remote code execution when AVIF files are optimized.
Next.js 2026-09-08 06. CVE-2025-29927: Next.js middleware authorization bypassSelf-hosted Next.js apps that did auth in middleware could be bypassed with the internal x-middleware-subrequest header. Relevant to any Next.js app, including ones generated by v0.
Next.js
v0
Bolt +2 more 2025-03 07. Next.js Server Actions denial of serviceCrafted requests to a Next.js App Router app with at least one Server Action can cause excessive CPU use that blocks other requests in the same process. Fixed in 16.4.1 and 15.5.28.
Next.js 2026-10-14 08. CVE-2026-94483: Next.js has Server-Side Request Forgery in Image OptimizationAn attacker-controlled, allow-listed remote URL can lead to server-side request forgery (e.g. to private IPs) during Image Optimization.
Next.js 2026-10-07 09. Secrets leaked via NEXT_PUBLIC_ (or VITE_) environment variablesPrefixing a variable with NEXT_PUBLIC_ inlines it into the JavaScript every visitor downloads. AI tools often “fix” a missing-env error this way.
Lovable
Bolt
v0 +4 more 2026-08 10. CVE-2026-44578: Next.js vulnerable to server-side request forgery in applications using WebSocket upgradesSelf-hosted applications using the built-in Node.js server can be vulnerable to server-side request forgery through crafted WebSocket upgrade requests.
Next.js 2026-05-11 11. CVE-2026-44574: Next.js has a Middleware / Proxy bypass through dynamic route parameter injectionApplications that rely on middleware to protect dynamic routes can be vulnerable to authorization bypass.
Next.js 2026-05-11 12. Protecting routes only in middlewareVercel recommends against middleware being the sole method of protecting routes. Check auth again where data is read or changed.
Next.js
v0
Bolt +2 more 2025-03
Same pattern
Also worth checking
01. CVE-2026-114125: A malicious website can tamper with your project through a running Storybook dev serverWhile a vulnerable Storybook dev server is running and open in your browser, a malicious website can embed its preview and send events to it. With some user interaction this can change story files in your project, and if a changed file is later run, the attacker's code runs with your permissions. Storybook 8, 9, 10 and 11 alpha are affected, including @storybook/addon-mcp 10.6.x before 10.6.2. Patched in 8.6.19, 9.1.21, 10.6.2 and 11.0.0-alpha.6.
Node.js
MCP SDKs & servers
Next.js +1 more 2026-10-21 02. Node.js October 21, 2026 security releases: four HIGH bugs in 26.x, 24.x and 22.xNode.js shipped 22.23.4, 24.22.1 and 26.12.1 on October 21, 2026, fixing 10 CVEs. The four HIGH ones are a Brotli decoder out-of-bounds write that can lead to remote code execution, two TLS certificate hostname bypasses, and dns.resolve truncating names that contain a NUL byte. Any app running its own Node process should upgrade.
Node.js
Next.js
Replit 2026-10-21