製品・ソフトウェアに関する情報
Julian Gruber (juliangruber)のbrace-expansionにおけるリソースの枯渇に関する脆弱性
Title Julian Gruber (juliangruber)のbrace-expansionにおけるリソースの枯渇に関する脆弱性
Summary

brace-expansionライブラリは、共通の接頭辞と接尾辞を含む任意の文字列を生成します。バージョン5.0.0から5.0.6未満の間、maxオプションの適用が遅すぎました。{1..10000000}のような単一の大きな数値範囲を展開する際、シーケンス生成ループはmax制限が適用される前に1000万もの中間要素をすべて生成してしまいます。max=10の場合、出力は正しく10項目に制限されますが、その処理は依然として約505MBのメモリを割り当て、約800msかけて中間配列全体を構築します。この脆弱性はバージョン5.0.6で修正されました。

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

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

Publication Date May 29, 2026, midnight
Registration Date June 5, 2026, 10:46 a.m.
Last Update June 5, 2026, 10:46 a.m.
CVSS3.0 : 重要
Score 7.5
Vector CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Affected System
Julian Gruber (juliangruber)
brace-expansion 5.0.0 から 5.0.6
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
1 [2026年06月05日]
  掲載
June 5, 2026, 10:46 a.m.

NVD Vulnerability Information
CVE-2026-45149
Summary

The brace-expansion library generates arbitrary strings containing a common prefix and suffix. From 5.0.0 to before 5.0.6, the max option was being applied too late. When expanding a single large numeric range like {1..10000000}, the sequence generation loop generates all 10 million intermediate elements before the max limit is applied With max=10, the output is correctly limited to 10 items, but the process still allocates ~505 MB and spends ~800ms building the full intermediate array. This vulnerability is fixed in 5.0.6.

Publication Date May 30, 2026, 5:16 a.m.
Registration Date May 31, 2026, 4:15 a.m.
Last Update June 4, 2026, 5:13 a.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:juliangruber:brace-expansion:*:*:*:*:*:node.js:*:* 5.0.0 5.0.6
Related information, measures and tools
Common Vulnerabilities List