Skip to content

v0.62.0

Choose a tag to compare

@Teloz1870 Teloz1870 released this 19 Oct 22:09
· 1 commit to main since this release

🔒 Security

  • next 16.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 in use cache functions 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 no use cache function and
    does not set images.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. next and
    eslint-config-next move to 16.4.1. It was younger than the three-day cooldown when it landed on
    main, so its twelve exact versions sat in minimumReleaseAgeExclude; 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_SECRET refuses its cron calls (CW-2026-008, CRON-AUTH-b;
    moderate — an insecure default closed).
    Until now every route under /api/cron ran for any caller while no
    CRON_SECRET was set, because Vercel Cron sends its Authorization header 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. Now verifyCronRequest
    (lib/cron/auth.ts) answers such a call in production with 503 and
    {"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=production or NODE_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 dev and 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 in app/ 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's CRON_SECRET item now say the jobs are
    refused, and each server instance logs the refusal once. A test calls every handler it finds
    under app/api/cron in 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 without UPSTASH_REDIS_REST_URL /
    UPSTASH_REDIS_REST_TOKEN — the default scaffold — a redirect saved in /admin/redirects, or
    imported from CSV through redirects.import, was stored and never served. Now
    lib/redirects/load.ts reads the map from Redis when it is configured (unchanged) and otherwise
    from the Redirect table, 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
    uses brand.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>/cart instead of a bare /cart that 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. With brand.urls unset every link is the same string as before; with
    trailingSlash or localePrefix: "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.
    next 16.4.0 with eslint-config-next 16.4.0, ai 7.0.137 with
    @ai-sdk/anthropic 4.0.78, @ai-sdk/google 4.0.93, @ai-sdk/openai-compatible 3.0.67 and
    @ai-sdk/react 4.0.140, @modelcontextprotocol/sdk 1.32.1, @google/genai 2.28.0,
    @vercel/blob 2.8.1, lucide-react 1.54.0, resend 6.32.1, and the dev packages
    @playwright/test 1.64.0, vite 8.3.4, postcss 8.5.29 and @typescript-eslint/parser 8.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 --prod reports no known advisory. The one dev-only advisory stays open, because its
    fixed release does not exist on npm yet (braces 3.0.3, GHSA-vfj7-8cjw-p6xm, which lists 3.0.4 as
    patched; reached only through eslint-config-next at lint time).
  • A product or category stored with a permalink is linked at it on every surface once
    urls.permalinks is on (URL5-a).
    Before, the option changed nothing: every call site handed
    lib/urls.ts the 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's url, 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 WebMCP url — and
    tests/unit/no-raw-product-href.test.ts fails on a call that passes one without the other, or that
    takes them from two entities where the slug is written x.slug (a slug held in a local variable is
    checked by reading the call site). DesignProduct and DesignCategory gain an optional permalink. 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 in docs/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.