<?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://vulnerability.circl.lu</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, 29 Sep 2026 02:12:48 +0000</lastBuildDate>
    <item>
      <title>GHSA-6rw7-vpxm-498p — qs's arrayLimit bypass in its bracket notation allows DoS via memory exhaustion</title>
      <link>https://vulnerability.circl.lu/vuln/ghsa-6rw7-vpxm-498p</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: qs&lt;/p&gt;
&lt;p&gt;### Summary&lt;/p&gt;
&lt;p&gt;The `arrayLimit` option in qs did not enforce limits for bracket notation (`a[]=1&amp;amp;a[]=2`), only for indexed notation (`a[0]=1`). This is a consistency bug; `arrayLimit` should apply uniformly across all array notations.&lt;/p&gt;
&lt;p&gt;**Note:** The default `parameterLimit` of 1000 effectively mitigates the DoS scenario originally described. With default options, bracket notation cannot produce arrays larger than `parameterLimit` regardless of `arrayLimit`, because each `a[]=value` consumes one parameter slot. The severity has been reduced accordingly.&lt;/p&gt;
&lt;p&gt;### Details&lt;/p&gt;
&lt;p&gt;The `arrayLimit` option only checked limits for indexed notation (`a[0]=1&amp;amp;a[1]=2`) but did not enforce it for bracket notation (`a[]=1&amp;amp;a[]=2`).&lt;/p&gt;
&lt;p&gt;**Vulnerable code** (`lib/parse.js:159-162`):
```javascript
if (root === &amp;#39;[]&amp;#39; &amp;amp;&amp;amp; options.parseArrays) {
    obj = utils.combine([], leaf);  // No arrayLimit check
}
```&lt;/p&gt;
&lt;p&gt;**Working code** (`lib/parse.js:175`):
```javascript
else if (index &amp;lt;= options.arrayLimit) {  // Limit checked here
    obj = [];
    obj[index] = leaf;
}
```&lt;/p&gt;
&lt;p&gt;The bracket notation handler at line 159 uses `utils.combine([], leaf)` without validating against `options.arrayLimit`, while indexed notation at line 175 checks `index &amp;lt;= options.arrayLimit` before creating arrays.&lt;/p&gt;
&lt;p&gt;### PoC&lt;/p&gt;
&lt;p&gt;```javascript
const qs = require(&amp;#39;qs&amp;#39;);
const result = qs.parse(&amp;#39;a[]=1&amp;amp;a[]=2&amp;amp;a[]=3&amp;amp;a[]=4&amp;amp;a[]=5&amp;amp;a[]=6&amp;#39;, { arrayLimit: 5 });
console.log(result.a.length);  // Output: 6 (should be max 5)
```&lt;/p&gt;
&lt;p&gt;**Note on parameterLimit interaction…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: qs&lt;/p&gt;
&lt;p&gt;### Summary&lt;/p&gt;
&lt;p&gt;The `arrayLimit` option in qs did not enforce limits for bracket notation (`a[]=1&amp;amp;a[]=2`), only for indexed notation (`a[0]=1`). This is a consistency bug; `arrayLimit` should apply uniformly across all array notations.&lt;/p&gt;
&lt;p&gt;**Note:** The default `parameterLimit` of 1000 effectively mitigates the DoS scenario originally described. With default options, bracket notation cannot produce arrays larger than `parameterLimit` regardless of `arrayLimit`, because each `a[]=value` consumes one parameter slot. The severity has been reduced accordingly.&lt;/p&gt;
&lt;p&gt;### Details&lt;/p&gt;
&lt;p&gt;The `arrayLimit` option only checked limits for indexed notation (`a[0]=1&amp;amp;a[1]=2`) but did not enforce it for bracket notation (`a[]=1&amp;amp;a[]=2`).&lt;/p&gt;
&lt;p&gt;**Vulnerable code** (`lib/parse.js:159-162`):
```javascript
if (root === &amp;#39;[]&amp;#39; &amp;amp;&amp;amp; options.parseArrays) {
    obj = utils.combine([], leaf);  // No arrayLimit check
}
```&lt;/p&gt;
&lt;p&gt;**Working code** (`lib/parse.js:175`):
```javascript
else if (index &amp;lt;= options.arrayLimit) {  // Limit checked here
    obj = [];
    obj[index] = leaf;
}
```&lt;/p&gt;
&lt;p&gt;The bracket notation handler at line 159 uses `utils.combine([], leaf)` without validating against `options.arrayLimit`, while indexed notation at line 175 checks `index &amp;lt;= options.arrayLimit` before creating arrays.&lt;/p&gt;
&lt;p&gt;### PoC&lt;/p&gt;
&lt;p&gt;```javascript
const qs = require(&amp;#39;qs&amp;#39;);
const result = qs.parse(&amp;#39;a[]=1&amp;amp;a[]=2&amp;amp;a[]=3&amp;amp;a[]=4&amp;amp;a[]=5&amp;amp;a[]=6&amp;#39;, { arrayLimit: 5 });
console.log(result.a.length);  // Output: 6 (should be max 5)
```&lt;/p&gt;
&lt;p&gt;**Note on parameterLimit interaction…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/ghsa-6rw7-vpxm-498p</guid>
    </item>
  </channel>
</rss>
