<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-09-29T02:12:48.409123+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/ghsa-6rw7-vpxm-498p</id>
    <title>GHSA-6rw7-vpxm-498p — qs's arrayLimit bypass in its bracket notation allows DoS via memory exhaustion</title>
    <updated>2026-09-29T02:12:49.129310+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> npm: qs</p>
<p>### Summary</p>
<p>The `arrayLimit` option in qs did not enforce limits for bracket notation (`a[]=1&amp;a[]=2`), only for indexed notation (`a[0]=1`). This is a consistency bug; `arrayLimit` should apply uniformly across all array notations.</p>
<p>**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.</p>
<p>### Details</p>
<p>The `arrayLimit` option only checked limits for indexed notation (`a[0]=1&amp;a[1]=2`) but did not enforce it for bracket notation (`a[]=1&amp;a[]=2`).</p>
<p>**Vulnerable code** (`lib/parse.js:159-162`):
```javascript
if (root === '[]' &amp;&amp; options.parseArrays) {
    obj = utils.combine([], leaf);  // No arrayLimit check
}
```</p>
<p>**Working code** (`lib/parse.js:175`):
```javascript
else if (index &lt;= options.arrayLimit) {  // Limit checked here
    obj = [];
    obj[index] = leaf;
}
```</p>
<p>The bracket notation handler at line 159 uses `utils.combine([], leaf)` without validating against `options.arrayLimit`, while indexed notation at line 175 checks `index &lt;= options.arrayLimit` before creating arrays.</p>
<p>### PoC</p>
<p>```javascript
const qs = require('qs');
const result = qs.parse('a[]=1&amp;a[]=2&amp;a[]=3&amp;a[]=4&amp;a[]=5&amp;a[]=6', { arrayLimit: 5 });
console.log(result.a.length);  // Output: 6 (should be max 5)
```</p>
<p>**Note on parameterLimit interaction…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/ghsa-6rw7-vpxm-498p"/>
  </entry>
</feed>
