Repository navigation
v0.62.0
🔒 Security
next16.4.1 closes two critical and one high upstream advisory (CW-2026-009). Next.js'
security release of 2026-10-14 fixes remote code execution inuse cachefunctions that return
typed arrays (GHSA-673q-mjm6-r5xr, critical), remote code execution in Image Optimization when SVG
files are used (GHSA-2464-fhr4-w9xw, critical) and a denial of service in the App Router through
Server Actions (GHSA-p3m5-59mp-jv5r, high). The engine itself writes nouse cachefunction and
does not setimages.dangerouslyAllowSVG, so the two critical ones are not known to be reachable
in an unchanged shop — but a shop may add either, and the App Router enables Server Actions by
default, so the denial of service is treated as reaching every Cartwright shop.nextand
eslint-config-nextmove to 16.4.1. It was younger than the three-day cooldown when it landed on
main, so its twelve exact versions sat inminimumReleaseAgeExclude; 16.4.1 is older than three
days now, so this release drops that block again and the cooldown applies to every package.- A production deploy without
CRON_SECRETrefuses its cron calls (CW-2026-008, CRON-AUTH-b;
moderate — an insecure default closed). Until now every route under/api/cronran for any caller while no
CRON_SECRETwas set, because Vercel Cron sends itsAuthorizationheader only once the secret
exists: anyone who knew a path could start a backup, delete expired tokens and old audit-log
rows, send cart-recovery mail, refresh FX rates or take the SEO snapshot. v0.60.0 announced the
change for the next release (Deprecated); v0.61.0 did not carry it. NowverifyCronRequest
(lib/cron/auth.ts) answers such a call in production with503and
{"error":"CRON_SECRET not configured on this deploy"}, and the job does not run. It is a 503,
not a 401, because no header could pass: the deploy lacks configuration, and the Vercel Cron log
should say that rather than look like a wrong secret. Production is what the v0.60.0 warning
already called it,VERCEL_ENV=productionorNODE_ENV=production: a Vercel production deploy,
next start, a container — and a Vercel preview, which runs as a production build (Vercel Cron
never calls a preview, so no scheduled job stops there).next devand the test suite still let
the call through. With the secret set, a wrong or missing bearer is a 401 as before. All eleven
routes go through the helper, eight inapp/and three mounted from the reviews and
google-workspace plugins; the two machine-only admin routes that take the same bearer
(/api/admin/run-pending-migrations,/api/admin/reset-demo-data) already refused without it.
The admin bar on every page and the setup guide'sCRON_SECRETitem now say the jobs are
refused, and each server instance logs the refusal once. A test calls every handler it finds
underapp/api/cronin production and fails unless it answers 503 without the secret and 401
with a wrong or missing one, before it reaches the database or the network.
Upgrading
Set CRON_SECRET in your production environment before you deploy this release, if you have
not: generate one with openssl rand -hex 32, add it as CRON_SECRET to the production
environment (Vercel → Settings → Environment Variables) and redeploy. Vercel Cron sends
Authorization: Bearer <CRON_SECRET> only when that variable exists, so without it every
scheduled job — backup, Stripe reconciliation, token clean-up, audit retention and the rest — is
refused and stops running. A shop on its own server or in a container schedules its crons with the
same header (docs/self-hosting.md).
Fixed
- Admin-managed redirects work without Upstash Redis (RED1). Until now the proxy read the
redirect map from Redis only, so on a shop withoutUPSTASH_REDIS_REST_URL/
UPSTASH_REDIS_REST_TOKEN— the default scaffold — a redirect saved in/admin/redirects, or
imported from CSV throughredirects.import, was stored and never served. Now
lib/redirects/load.tsreads the map from Redis when it is configured (unchanged) and otherwise
from theRedirecttable, cached for 60 seconds per server instance, so a new or deleted
redirect takes effect within about a minute. A failing read means no redirect, as before. Nothing
is built at import. The admin page and the tool description no longer say Redis is required. - The review-request mail links to the shop's own language (URL2-d). It hardcoded
/da/review/…,
so on a shop whose base language is not Danish the link led to a route that does not exist. It now
usesbrand.defaultLocale, and keeps the language in the address even under
localePrefix: "never"(the signed token has a dot, so only the prefixed address reaches the review
page). The abandoned-cart mail links/<defaultLocale>/cartinstead of a bare/cartthat needed a
redirect. - The last hand-built storefront links go through
lib/urls.ts(URL2-d): the four shared chrome
parts (minimal/centered headers, slim/mega footers), the Flux, Halo, Aerospace and Drive 404 pages,
Halo's catalogue link on the product page, the blog index cards and its JSON-LD, and the wishlist
and review pages. Withbrand.urlsunset every link is the same string as before; with
trailingSlashorlocalePrefix: "never"they answer without a redirect. The design packs' own
headers and footers are the next slice.
Changed
- Dependencies moved to their newest releases inside the current majors, each public for at least
three days.next16.4.0 witheslint-config-next16.4.0,ai7.0.137 with
@ai-sdk/anthropic4.0.78,@ai-sdk/google4.0.93,@ai-sdk/openai-compatible3.0.67 and
@ai-sdk/react4.0.140,@modelcontextprotocol/sdk1.32.1,@google/genai2.28.0,
@vercel/blob2.8.1,lucide-react1.54.0,resend6.32.1, and the dev packages
@playwright/test1.64.0,vite8.3.4,postcss8.5.29 and@typescript-eslint/parser8.71.1.
No direct dependency moved a major, and no code changed: nothing in the engine used the
experimental options Next 16.4 removed (experimental.appNewScrollHandler,unstable_eager).
pnpm audit --prodreports no known advisory. The one dev-only advisory stays open, because its
fixed release does not exist on npm yet (braces3.0.3, GHSA-vfj7-8cjw-p6xm, which lists 3.0.4 as
patched; reached only througheslint-config-nextat lint time). - A product or category stored with a
permalinkis linked at it on every surface once
urls.permalinksis on (URL5-a). Before, the option changed nothing: every call site handed
lib/urls.tsthe slug alone. Now each one hands over the slug and the permalink of the same entity
— the product and category pages' canonical, language alternates and BreadcrumbList, the sitemap,
/pricing.md, the catalog feed, the product-search API'surl, the product card (rendered without
a locale it links the permalink in the locale the page is rendered in), the design packs' homepage and card links,
the footer, the cart, the review pages and the PLP's WebMCPurl— and
tests/unit/no-raw-product-href.test.tsfails on a call that passes one without the other, or that
takes them from two entities where the slug is writtenx.slug(a slug held in a local variable is
checked by reading the call site).DesignProductandDesignCategorygain an optionalpermalink. With the
option off — the default, every shop today — the stored column is ignored and every link is the
same string as before. The shop does not serve a permalink yet (URL5-b), so leave the option
unset on a live shop. Still on the pattern, listed indocs/urls.md: the header and mobile-menu
category navigation, the category page's "Explore more" list, the shopping assistant's product
cards, the IndexNow ping, the coffee pack's brew-recommendation tool and the agent checkout's
cancel_url.