Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. next-video
  4. ›
  5. CVE-2026-54150

CVE-2026-54150: next-video: Unauthenticated arbitrary file read via /api/video request handler

August 20, 2026

The HTTP route handler exported by next-video/request-handler — which the README instructs consumers to mount at /api/video — allows an unauthenticated remote attacker to read arbitrary .json files from the production filesystem of any application following the documented setup.

The handler’s GET endpoint accepts a url query parameter and uses it to locate and serve a JSON asset descriptor from disk. The only guard between “remote URL” and “local file path” is a regex check for ^https?://. Any value that does not match that prefix is treated as a local path, .json is appended, and the file is read with fs.readFile and returned in the HTTP response — with no authentication, no path canonicalization, and no traversal guard.

On a typical Next.js deployment this exposes, at minimum:

  • The Next.js Server Actions AES encryption key (.next/server/server-reference-manifest.json)
  • The Next.js Preview/Draft Mode keys (previewModeId, previewModeSigningKey, previewModeEncryptionKey)
  • Internal build manifests, route registries, and absolute runtime paths
  • Application-specific asset metadata (e.g. Mux uploadId, assetId, playbackId values stored in videos/*.json)

Any application that mounted /api/video following the documented one-liner is affected.

References

  • github.com/advisories/GHSA-2p39-2jf3-fv2q
  • github.com/muxinc/next-video/commit/73abf1d534c2ac48db546ecfed0e89cbaf124f6f
  • github.com/muxinc/next-video/releases/tag/v2.8.1
  • github.com/muxinc/next-video/security/advisories/GHSA-2p39-2jf3-fv2q
  • nvd.nist.gov/vuln/detail/CVE-2026-54150

Code Behaviors & Features

Detect and mitigate CVE-2026-54150 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.8.1

Fixed versions

  • 2.8.1

Solution

Upgrade to version 2.8.1 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor

Source file

npm/next-video/CVE-2026-54150.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 11 Sep 2026 00:17:56 +0000.