Repository navigation
Security
- Fixed a high severity vulnerability (CVE-2026-142200) in remote video imports with the
amazon-s3,backblaze,cloudflare-r2andvercel-blobproviders. Apps on the defaultmuxprovider 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
withNextVideowhen the API route loads its own copy of the config module. With Next 15, the route fell back to the defaults innext devandnext start(01f1948) - log failed
POSTimports. Before, the route answered500without logging the error (01f1948)
Features
remoteSourcesoption to restrict remote video imports:authorizeforPOSTimports,allowPrivateHosts,maxSizeandallowedContentTypes. 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 theerrorstatus and the server logsRemote source rejectedwith the host to allow. Add the host toremoteSources.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 withauthorize. - A global undici dispatcher set with
setGlobalDispatcher, like a proxy or anAgentwith its own CA, no longer applies to remote video downloads. For a custom CA, useNODE_EXTRA_CA_CERTS, which keeps the check.allowPrivateHosts: truerestores the old behavior, without the private address check. - Config passed only to
withNextVideo, with the route re-exportingnext-video/request-handler: the route now uses that config (provider, hooks andremoteSources). 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. Withoutput: 'standalone'the route still doesn't get it: define the config withNextVideo()in a module the route imports. - Routes that export
POST(the Pages Router handler, orexport { GET, POST }in the App Router) still accept public URLs from anyone, who can import them into your storage. SetremoteSources.authorizeor put authentication in front of the route.