製品・ソフトウェアに関する情報
Deno Land Inc.のDenoにおけるパストラバーサルの脆弱性
Title Deno Land Inc.のDenoにおけるパストラバーサルの脆弱性
Summary

DenoはJavaScript、TypeScript、およびWebAssemblyのランタイムです。バージョン2.7.12以前では、DenoがBYONMモード(nodeModulesDir: "manual")で実行されている場合、モジュールリゾルバはパッケージの解決されたエントリポイントがnode_modules/pkg/ディレクトリ内にとどまっているかどうかを検証していませんでした。mainフィールドに..セグメントを含む悪意のあるpackage.jsonにより、任意のディスク上のパスに解決され、そのファイルが--allow-readの許可リストを参照せずにリゾルバによって読み取られる可能性がありました。これにより、require("evil-pkg")の呼び出しが、直接Deno.readTextFileSync(...)の呼び出しでは読み取りがブロックされるはずのファイルの内容を返すことができました。この脆弱性はバージョン2.7.12で修正されました。

Possible impacts ・当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 ・当該ソフトウェアが扱う情報について、書き換えは発生しません。 ・当該ソフトウェアは停止しません。 
Solution

ベンダ情報を参照して適切な対策を実施してください。

Publication Date June 23, 2026, midnight
Registration Date June 29, 2026, 11:14 a.m.
Last Update June 29, 2026, 11:14 a.m.
CVSS3.0 : 警告
Score 5.5
Vector CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
1 [2026年06月29日]
  掲載
June 29, 2026, 11:14 a.m.

NVD Vulnerability Information
CVE-2026-49406
Summary

Deno is a JavaScript, TypeScript, and WebAssembly runtime. Prior to 2.7.12, when Deno was run in BYONM mode (nodeModulesDir: "manual"), the module resolver did not validate that a package's resolved entrypoint stayed within its node_modules/<pkg>/ directory. A malicious package.json whose main field contained .. segments was able to resolve to an arbitrary path on disk, and the resolver then read that file without consulting the --allow-read allowlist. This let a require("evil-pkg") call return the contents of a file that a direct Deno.readTextFileSync(...) call would have been blocked from reading. This vulnerability is fixed in 2.7.12.

Publication Date June 24, 2026, 3:18 a.m.
Registration Date June 27, 2026, 4:14 a.m.
Last Update June 27, 2026, 2:29 a.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:deno:deno:*:*:*:*:*:*:*:* 2.7.12
Related information, measures and tools
Common Vulnerabilities List