WR 株式会社WR 松戸のホームページ制作・社内システム・IT相談

株式会社WR

千葉県松戸市
松戸・柏・市川・流山・船橋 対応

ホーム›脆弱性情報›Next.js›CVE-2026-54150

警告 CVSS 6.9 Next.js CVE-2026-54150 公表 2026年9月14日

Next.jsのnext-videoに任意ファイル読み取りの脆弱性

Next.js — CVE-2026-54150

自分のサイトが該当するか無料診断 → 原文を見る(NVD(米国 脆弱性データベース))↗

どんな問題か

Next.js向けnext-videoのAPIに、保存場所の外にあるファイルを読めてしまう問題があります。URLの指定を使って、想定外のJSONファイルを見られることがあります。

放置するとどうなるか

設定情報やビルド情報が漏れ、サイトの内部構造が知られるおそれがあります。秘密情報の流出や、運用への悪用につながる可能性があります。

今すぐやること

next-videoを2.8.1へ更新してください。APIを外部公開している場合は特に早急に対応し、不要ならエンドポイントを閉じてください。

自分のサイトが該当するかの確認手順

  1. お使いのサーバー・プログラムに Next.js が使われているか、制作会社・保守会社・サーバー会社に確認します(管理画面やサーバーのバージョン表示でも分かります)。
  2. バージョンが「Prior to 2.8.1」に当てはまるか確認します。
  3. 当てはまる場合は、修正版へのアップデートを依頼します。レンタルサーバーの場合はサーバー会社側で対応済みのこともあるので、お知らせを確認してください。
原文(英語)を表示
next-video is a library for adding video to Next.js applications. Prior to 2.8.1, the GET endpoint exported by next-video/request-handler and commonly mounted at /api/video accepts an unauthenticated url query parameter, while src/utils/utils.ts isRemote() treats any value without an HTTP or HTTPS prefix as a local path. src/request-handler.ts passes that value through src/assets.ts getAssetPath() to src/config.ts loadAsset(), which appends a JSON suffix and uses fs.readFile without canonicalizing the path or verifying that it remains inside the configured video folder. A remote attacker can therefore escape the intended asset directory and read JSON files accessible to the application process, including Next.js server-action encryption material, preview-mode keys, build manifests, route metadata, absolute paths, and application video asset identifiers. Applications that do not expose the runtime request handler are not affected through this route. This issue is fixed in version 2.8.1.

※ 解説は NVD(米国 脆弱性データベース) の公表内容をもとにAIが生成しています。対象バージョン・修正版などの正確な情報は、必ず原文をご確認ください。

無料で相談する →