Skip to content
Heist/ feed
Back to feed
High

node-qs — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-2391

### Summary The `arrayLimit` option in qs does not enforce limits for comma-separated values when `comma: true` is enabled, allowing attackers to cause denial-of-service via memory exhaustion. This is a bypass of the array limit enforcement, similar to the bracket notation bypass addressed in GHSA-6rw7-vpxm-498p (CVE-2025-15284). ### Details When the `comma` option is set to `true` (not the default, but configurable in applications), qs allows parsing comma-separated strings as arrays (e.g., `?param=a,b,c` becomes `['a', 'b', 'c']`). However, the limit check for `arrayLimit` (default: 20) and the optional throwOnLimitExceeded occur after the comma-handling logic in `parseArrayValue`, enabling a bypass. This permits creation of arbitrarily large arrays from a single parameter, leading to excessive memory allocation. **Vulnerable code** (lib/parse.js: lines ~40-50): ```js if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) { return val.split(','); } if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) { throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.'); } return val; ``` The `split(',')` returns the array immediately, skipping the subsequent limit check. Downstream merging via `utils.combine` does not prevent allocation, even if it marks overflows for sparse arrays.This discrepancy allows attackers to send a single parameter wi

Products
node-qs
Affected versions
0.4.2-1, 0.6.5-1, 0.6.5-1ubuntu0.1~esm1, 2.2.4-1, 2.2.4-1ubuntu1, 6.10.1+ds-1, 6.10.2+ds+~6.9.7-1, 6.10.3+ds+~6.9.7-1, 6.11.0+ds+~6.9.7-3, 6.11.0+ds+~6.9.7-4, 6.13.0+ds+~6.9.16-1, 6.14.1+ds+~6.14.0-1, 6.15.2+ds+~6.15.1-1, 6.5.2-1, 6.9.0+ds-1, 6.9.1+ds-1, 6.9.1+ds-1ubuntu0.1~esm1, 6.9.4+ds-1
Fixed versions
Not specified
CVEs
CVE-2026-2391
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 02:58 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-2391

core-osv · Original source

Published 12 Feb 2026, 05:17 UTC

### Summary The `arrayLimit` option in qs does not enforce limits for comma-separated values when `comma: true` is enabled, allowing attackers to cause denial-of-service via memory exhaustion. This is a bypass of the array limit enforcement, similar to the bracket notation bypass addressed in GHSA-6rw7-vpxm-498p (CVE-2025-15284). ### Details When the `comma` option is set to `true` (not the default, but configurable in applications), qs allows parsing comma-separated strings as arrays (e.g., `?param=a,b,c` becomes `['a', 'b', 'c']`). However, the limit check for `arrayLimit` (default: 20) and the optional throwOnLimitExceeded occur after the comma-handling logic in `parseArrayValue`, enabling a bypass. This permits creation of arbitrarily large arrays from a single parameter, leading to excessive memory allocation. **Vulnerable code** (lib/parse.js: lines ~40-50): ```js if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) { return val.split(','); } if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) { throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.'); } return val; ``` The `split(',')` returns the array immediately, skipping the subsequent limit check. Downstream merging via `utils.combine` does not prevent allocation, even if it marks overflows for sparse arrays.This discrepancy allows attackers to send a single parameter wi

osv:UBUNTU-CVE-2026-2391

node-qs

Fixed versions: Not specified

node-qs

Fixed versions: Not specified

node-qs

Fixed versions: Not specified

node-qs

Fixed versions: Not specified

node-qs

Fixed versions: Not specified

node-qs

Fixed versions: Not specified

node-qs

Fixed versions: Not specified

node-qs

Fixed versions: Not specified

node-qs

Fixed versions: Not specified

Complete source record
{
  "id": "61b4d3697aab267e77f5d95f3e4acfe3fb5f6cdeddf43be9b8294482d5ff75f4",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-2391",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-2391",
    "summary": "### Summary The `arrayLimit` option in qs does not enforce limits for comma-separated values when `comma: true` is enabled, allowing attackers to cause denial-of-service via memory exhaustion. This is a bypass of the array limit enforcement, similar to the bracket notation bypass addressed in GHSA-6rw7-vpxm-498p (CVE-2025-15284). ### Details When the `comma` option is set to `true` (not the default, but configurable in applications), qs allows parsing comma-separated strings as arrays (e.g., `?param=a,b,c` becomes `['a', 'b', 'c']`). However, the limit check for `arrayLimit` (default: 20) and the optional throwOnLimitExceeded occur after the comma-handling logic in `parseArrayValue`, enabling a bypass. This permits creation of arbitrarily large arrays from a single parameter, leading to excessive memory allocation. **Vulnerable code** (lib/parse.js: lines ~40-50): ```js if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) { return val.split(','); } if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) { throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.'); } return val; ``` The `split(',')` returns the array immediately, skipping the subsequent limit check. Downstream merging via `utils.combine` does not prevent allocation, even if it marks overflows for sparse arrays.This discrepancy allows attackers to send a single parameter wi",
    "evidence": "osv:UBUNTU-CVE-2026-2391",
    "products": [
      {
        "name": {
          "value": "node-qs",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.4.2-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.6.5-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.6.5-1ubuntu0.1~esm1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-qs",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.2.4-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-qs",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.2.4-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.2.4-1ubuntu1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-qs",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.5.2-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "6.9.0+ds-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "6.9.1+ds-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "6.9.1+ds-1ubuntu0.1~esm1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-qs",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.9.4+ds-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "6.10.1+ds-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "6.10.2+ds+~6.9.7-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "6.10.3+ds+~6.9.7-1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-qs",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.11.0+ds+~6.9.7-3",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "6.11.0+ds+~6.9.7-4",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-qs",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.13.0+ds+~6.9.16-1",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-qs",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.14.1+ds+~6.14.0-1",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "6.15.2+ds+~6.15.1-1",
            "evidence": "/affected/7/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-qs",
          "evidence": "/affected/8/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.13.0+ds+~6.9.16-1",
            "evidence": "/affected/8/versions"
          },
          {
            "value": "6.14.1+ds+~6.14.0-1",
            "evidence": "/affected/8/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2026-2391",
      "aliases": [
        "UBUNTU-CVE-2026-2391"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        },
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-qs",
            "purl": "pkg:deb/ubuntu/node-qs?arch=source&distro=esm-infra-legacy%2Ftrusty",
            "ecosystem": "Ubuntu:Pro:14.04:LTS"
          },
          "versions": [
            "0.4.2-1",
            "0.6.5-1",
            "0.6.5-1ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2391.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-qs",
                "binary_version": "0.6.5-1ubuntu0.1~esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-qs",
            "purl": "pkg:deb/ubuntu/node-qs?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "2.2.4-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2391.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-qs",
                "binary_version": "2.2.4-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-qs",
            "purl": "pkg:deb/ubuntu/node-qs?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "2.2.4-1",
            "2.2.4-1ubuntu1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2391.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-qs",
                "binary_version": "2.2.4-1ubuntu1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-qs",
            "purl": "pkg:deb/ubuntu/node-qs?arch=source&distro=esm-apps%2Ffocal",
            "ecosystem": "Ubuntu:Pro:20.04:LTS"
          },
          "versions": [
            "6.5.2-1",
            "6.9.0+ds-1",
            "6.9.1+ds-1",
            "6.9.1+ds-1ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2391.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-qs",
                "binary_version": "6.9.1+ds-1ubuntu0.1~esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-qs",
            "purl": "pkg:deb/ubuntu/node-qs?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "6.9.4+ds-1",
            "6.10.1+ds-1",
            "6.10.2+ds+~6.9.7-1",
            "6.10.3+ds+~6.9.7-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2391.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-qs",
                "binary_version": "6.10.3+ds+~6.9.7-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-qs",
            "purl": "pkg:deb/ubuntu/node-qs?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "6.11.0+ds+~6.9.7-3",
            "6.11.0+ds+~6.9.7-4"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2391.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-qs",
                "binary_version": "6.11.0+ds+~6.9.7-4"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-qs",
            "purl": "pkg:deb/ubuntu/node-qs?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "6.13.0+ds+~6.9.16-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2391.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-qs",
                "binary_version": "6.13.0+ds+~6.9.16-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-qs",
            "purl": "pkg:deb/ubuntu/node-qs?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "6.14.1+ds+~6.14.0-1",
            "6.15.2+ds+~6.15.1-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2391.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-qs",
                "binary_version": "6.15.2+ds+~6.15.1-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-qs",
            "purl": "pkg:deb/ubuntu/node-qs?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "6.13.0+ds+~6.9.16-1",
            "6.14.1+ds+~6.14.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-2391.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-qs",
                "binary_version": "6.14.1+ds+~6.14.0-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:59:56.387161176Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-2391"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-2391",
        "https://www.cve.org/CVERecord?id=CVE-2026-2391",
        "https://github.com/ljharb/qs/security/advisories/GHSA-w7fw-mjwx-w883",
        "https://github.com/ljharb/qs/commit/f6a7abff1f13d644db9b05fe4f2c98ada6bf8482"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-2391",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/1/score"
  },
  "source_id": "core-osv",
  "document_id": 360002,
  "published_at": "2026-02-12T05:17:00+00:00"
}