node-modulesのcompressingにおけるリンク解釈に関する脆弱性
タイトル node-modulesのcompressingにおけるリンク解釈に関する脆弱性
概要

CompressingはNode.js用の圧縮および解凍ライブラリであり、バージョン2.1.1および1.10.5以前では、パス検証に論理的な文字列チェックのみを使用し、実際のファイルシステムの状態を考慮していませんでした。この不一致を悪用することで、攻撃者はディレクトリポイズニングを行い、セキュリティチェックを回避できる可能性があります。

想定される影響 当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 
対策

正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

公表日 2026年4月21日0:00
登録日 2026年4月27日11:20
最終更新日 2026年4月27日11:20
CVSS3.0 : 重要
スコア 7.8
ベクター CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
影響を受けるシステム
node-modules
compressing 1.10.5 未満
compressing 2.0.0 以上 2.1.1 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
変更履歴
No 変更内容 変更日
1 [2026年04月27日]
  掲載
2026年4月27日11:20

NVD脆弱性情報
CVE-2026-40931
概要

Compressing is a compressing and uncompressing lib for node. Prior to 2.1.1 and 1.10.5, the patch for CVE-2026-24884 relies on a purely logical string validation within the isPathWithinParent utility. This check verifies if a resolved path string starts with the destination directory string but fails to account for the actual filesystem state. By exploiting this "Logical vs. Physical" divergence, an attacker can bypass the security check using a Directory Poisoning technique (pre-existing symbolic links). This vulnerability is fixed in 2.1.1 and 1.10.5.

公表日 2026年4月22日7:16
登録日 2026年4月25日4:04
最終更新日 2026年4月24日0:49
影響を受けるソフトウェアの構成
構成1 以上 以下 より上 未満
cpe:2.3:a:node-modules:compressing:*:*:*:*:*:node.js:*:* 1.10.5
cpe:2.3:a:node-modules:compressing:*:*:*:*:*:node.js:*:* 2.0.0 2.1.1
関連情報、対策とツール
共通脆弱性一覧