Next.js patched seven security vulnerabilities on November 3, fixing issues that range from a high-severity cross-tenant data leak to SVG injection through the image optimizer. The most dangerous one will surprise you: it doesn’t involve a clever exploit or a zero-day. It’s the natural, well-intentioned combination of two caching APIs that most Next.js 16.4 developers are already using.
The Vulnerability That Can Leak Tenant Data
The high-severity issue (GHSA-mfr8-8qww-v76h, CVE-2026-119790) hits applications that combine unstable_cache() with use cache functions that read root parameters. Root parameters in Next.js are route segments in the root layout — commonly used to scope data per tenant, locale, or subdomain.
Here’s the attack scenario: when two requests hit a cold cache simultaneously, one routed through unstable_cache and one calling the use cache function directly, the indirect call can receive the other request’s cached result. It misses the root-parameter check entirely. The wrong result then gets stored and served to every subsequent caller until the entry is evicted or revalidated — which on a production cache could be hours.
The dangerous pattern looks like this:
// Don't do this — tenantId scope is ignored during cold fill
const getOrgData = unstable_cache(async (tenantId: string) => {
return fetchOrgData(tenantId); // fetchOrgData has 'use cache'
});
The fix: pick one mechanism. If your function already uses 'use cache', call it directly. unstable_cache and use cache are not safe to stack when root parameters gate access to tenant data. Vercel confirmed the workaround in the advisory: avoiding the combination is a complete mitigation if you can’t upgrade immediately.
Cookie Bleed on Edge Routes
The second issue worth flagging (GHSA-f3mh-rxg3-f5g2, CVE-2026-119346) affects Edge Route Handlers and Edge API routes that set HttpOnly cookies via NextResponse.cookies.set(). The cookie value leaks through an internal response header — which means anything you’re storing as HttpOnly (auth tokens, session identifiers) on an Edge route could be readable.
Check your exposure in under a minute:
grep -r "runtime.*edge" app/api/ app/routes/
If those files set cookies, upgrade before anything else.
SVG Bypass in Image Optimization (Self-Hosted Only)
The image optimizer on self-hosted deployments can be tricked into processing an SVG when dangerouslyAllowSVG: false is set. An attacker crafts an image from a permitted domain to look like AVIF in its headers but contain SVG bytes in its body. The optimizer misclassifies it and runs the SVG decoder. This requires a native image backend capable of decoding SVG and doesn’t affect apps hosted on Vercel.
Three More: Binary Cache Keys and Self-Hosted Response Injection
The remaining four vulnerabilities are medium severity and affect narrower configurations:
- Binary argument cache collapse (GHSA-rhh4-g77r-r9qj): Distinct
Blobor binary arguments passed touse cachefunctions can hash to the same cache key. Users with different binary inputs could share or poison each other’s entries. - Cross-client response injection (GHSA-pc58-hwjq-p385): Self-hosted apps that forward fetched responses can serve one client’s response data to another.
- Fallback shell poisoning (GHSA-vvgp-ww4w-46vf): An attacker can poison the shared fallback shell cache in Cache Components by supplying crafted placeholder route params.
- Nested use cache root-parameter leak: An outer cache entry can be stored before an inner function registers its root-parameter dependencies, disclosing tenant- or locale-scoped content.
Upgrade Now
Both patched releases are drop-in replacements for their predecessors. No breaking changes, no migration required.
# Active LTS (16.x)
npm install next@16.4.5
# Maintenance LTS (15.x)
npm install next@15.5.29
If you’re still on a 14.x branch: it’s out of support and receives no security patches. The November advisories don’t cover 14.x — you’re on your own. The official Next.js security release blog post lists all affected version ranges and patch guidance.
What This Release Tells You About the Cache APIs
The unstable_ prefix on unstable_cache was supposed to signal “not production-ready,” but developers used it in production anyway, and Next.js kept shipping it without breaking it. use cache shipped in 16.4 as the production-grade replacement. The November security release is the first time the incompatibility between these two has had real consequences.
If you’ve been combining them to get root-parameter scoping on top of persistent caching, now you know why that was a bad idea — and you have a patched version to fix it. For the full advisory details, see the Next.js security advisories on GitHub. Netlify has also published a deployment-focused breakdown worth reading if you host there.

