<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://db.gcve.eu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Tue, 10 Nov 2026 07:58:00 +0000</lastBuildDate>
    <item>
      <title>GHSA-3jxr-9vmj-r5cp — brace-expansion: DoS via exponential-time expansion of consecutive non-expanding {} groups</title>
      <link>https://db.gcve.eu/vuln/ghsa-3jxr-9vmj-r5cp</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: brace-expansion&lt;/p&gt;
&lt;p&gt;### Summary
brace-expansion&amp;#39;s expand() exhibits exponential-time - O(2ⁿ) - behavior in the number of consecutive non-expanding {} groups. A short, all-ASCII input (~90 bytes/30 groups) blocks the calling thread for minutes; a slightly longer input hangs it effectively indefinitely. Because the dominant consumers run on Node&amp;#39;s single-threaded event loop, one small input can fully stall a worker/process.&lt;/p&gt;
&lt;p&gt;In `expand_`, `post` is computed unconditionally at the top of the function, before the early-return branches that don&amp;#39;t use it:
```js
const post = m.post.length ? expand_(m.post, max, false) : [&amp;#39;&amp;#39;];   // always recurses
  ...
if (!isSequence &amp;amp;&amp;amp; !isOptions) {
  if (m.post.match(/,(?!,).*\}/)) {
    str = m.pre + &amp;#39;{&amp;#39; + m.body + escClose + m.post;
    return expand_(str, max, true); // restart — `post` discarded
  }
  return [str];
}
```&lt;/p&gt;
&lt;p&gt;For input like a{},{},…, the first {} is non-expanding, so control reaches the {a},b} rewrite branch - but `expand_` has already recursed into post over the entire remaining tail, only to throw the result away.
Each level therefore spawns two recursive expansions over essentially the same remaining work: `T(n) = 2·T(n−1) ⇒ O(2ⁿ)`.&lt;/p&gt;
&lt;p&gt;The max option does not mitigate this: max only bounds the output-building loops; neither the post recursion nor the rewrite recursion consults it.
  
Measured on 5.0.6:&lt;/p&gt;
&lt;p&gt;| groups (n) | input bytes | time |
|---|---|---|
| 20 | 60 | 130 ms |
| 24 | 72 | 1.9 s |
| 26 | 78 | 7.8 s |
| 30 (PoC) | 90 | ~2 min |&lt;/p&gt;
&lt;p&gt;### Pro…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: brace-expansion&lt;/p&gt;
&lt;p&gt;### Summary
brace-expansion&amp;#39;s expand() exhibits exponential-time - O(2ⁿ) - behavior in the number of consecutive non-expanding {} groups. A short, all-ASCII input (~90 bytes/30 groups) blocks the calling thread for minutes; a slightly longer input hangs it effectively indefinitely. Because the dominant consumers run on Node&amp;#39;s single-threaded event loop, one small input can fully stall a worker/process.&lt;/p&gt;
&lt;p&gt;In `expand_`, `post` is computed unconditionally at the top of the function, before the early-return branches that don&amp;#39;t use it:
```js
const post = m.post.length ? expand_(m.post, max, false) : [&amp;#39;&amp;#39;];   // always recurses
  ...
if (!isSequence &amp;amp;&amp;amp; !isOptions) {
  if (m.post.match(/,(?!,).*\}/)) {
    str = m.pre + &amp;#39;{&amp;#39; + m.body + escClose + m.post;
    return expand_(str, max, true); // restart — `post` discarded
  }
  return [str];
}
```&lt;/p&gt;
&lt;p&gt;For input like a{},{},…, the first {} is non-expanding, so control reaches the {a},b} rewrite branch - but `expand_` has already recursed into post over the entire remaining tail, only to throw the result away.
Each level therefore spawns two recursive expansions over essentially the same remaining work: `T(n) = 2·T(n−1) ⇒ O(2ⁿ)`.&lt;/p&gt;
&lt;p&gt;The max option does not mitigate this: max only bounds the output-building loops; neither the post recursion nor the rewrite recursion consults it.
  
Measured on 5.0.6:&lt;/p&gt;
&lt;p&gt;| groups (n) | input bytes | time |
|---|---|---|
| 20 | 60 | 130 ms |
| 24 | 72 | 1.9 s |
| 26 | 78 | 7.8 s |
| 30 (PoC) | 90 | ~2 min |&lt;/p&gt;
&lt;p&gt;### Pro…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/ghsa-3jxr-9vmj-r5cp</guid>
    </item>
  </channel>
</rss>
