Skip to content

v2.9.0

Latest

Choose a tag to compare

@github-actions github-actions released this 03 Dec 19:27

Security

  • Fixed a high severity vulnerability (CVE-2026-142200) in remote video imports with the amazon-s3, backblaze, cloudflare-r2 and vercel-blob providers. Apps on the default mux provider weren't affected. Users of those providers on affected versions should upgrade to v2.9.0 immediately.
    See the Security Advisory for details.

Bug Fixes

  • encode object keys in storage provider URLs (#434) (3b477c1)
  • keep the config set with withNextVideo when the API route loads its own copy of the config module. With Next 15, the route fell back to the defaults in next dev and next start (01f1948)
  • log failed POST imports. Before, the route answered 500 without logging the error (01f1948)

Features

  • remoteSources option to restrict remote video imports: authorize for POST imports, allowPrivateHosts, maxSize and allowedContentTypes. See Restrict remote video imports (01f1948)

Upgrading

Most apps need no changes. These cases do:

  • Remote videos from localhost, a private network or Docker (an internal MinIO, host.docker.internal) with S3, R2, Backblaze or Vercel Blob are rejected. The asset gets the error status and the server logs Remote source rejected with the host to allow. Add the host to remoteSources.allowPrivateHosts, e.g. ['localhost'], and delete the asset's JSON to import it again. Anyone who can call the route can read an allowed host, so in production use it together with authorize.
  • A global undici dispatcher set with setGlobalDispatcher, like a proxy or an Agent with its own CA, no longer applies to remote video downloads. For a custom CA, use NODE_EXTRA_CA_CERTS, which keeps the check. allowPrivateHosts: true restores the old behavior, without the private address check.
  • Config passed only to withNextVideo, with the route re-exporting next-video/request-handler: the route now uses that config (provider, hooks and remoteSources). With Next 15 it used the defaults before (Mux and local JSON files), so imports through the route can go to a different provider after upgrading. With output: 'standalone' the route still doesn't get it: define the config with NextVideo() in a module the route imports.
  • Routes that export POST (the Pages Router handler, or export { GET, POST } in the App Router) still accept public URLs from anyone, who can import them into your storage. Set remoteSources.authorize or put authentication in front of the route.