Home / Qs Project / Qs / CVE-2026-2391
CVE-2026-2391: is it exploited, and which versions of Qs Project Qs are affected and fixed?
CVE-2026-2391 is an improper input validation vulnerability in Qs Project Qs. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 11:08 UTC). Affected: qs from 6.7.0 before 6.14.2 (GitHub advisory GHSA-w7fw-mjwx-w883). Fixed in 6.14.2 (GitHub advisory GHSA-w7fw-mjwx-w883). Severity: Medium (6.3, CVSS 4.0, from harborist).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 11:08 UTC, CVE record November 19, 2026, 07:09 UTC and NVD November 19, 2026, 07:13 UTC.
What is CVE-2026-2391?
qs's arrayLimit bypass in comma parsing allows denial of service
### 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 with millions of commas (e.g., `?param=,,,,,,,,...`), allocating massive arrays in memory without triggering limits. It bypasses the intent of `arrayLimit`, which is enforced correctly for indexed (`a[0]=`) and bracket (`a[]=`) notations (the latter fixed in v6.14.1 per GHSA-6rw7-vpxm-498p). ### PoC **Test 1 - Basic bypass:** ``` npm install qs ``` ```js const qs = require('qs'); const payload = 'a=' + ','.repeat(25); // 26 elements after split (bypasses arrayLimit: 5) const options = { comma: true, arrayLimit: 5, throwOnLimitExceeded: true }; try { const result = qs.parse(payload, options); console.log(result.a.length); // Outputs: 26 (bypass successful) } catch (e) { console.log('Limit enforced:', e.message); // Not thrown } ``` **Configuration:** - `comma: true` - `arrayLimit: 5` - `throwOnLimitExceeded: true` Expected: Throws "Array limit exceeded" error. Actual: Parses successfully, creating an array of length 26. ### Impact Denial of Service (DoS) via memory exhaustion.
From the CVE record by harborist, last updated February 12, 2026, 17:32 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| qs | from 6.7.0 through 6.14.1 |
As the CVE record by harborist states it, last updated February 12, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | qs | >= 6.7.0, < 6.14.2 | 6.14.2 | GHSA-w7fw-mjwx-w883 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated February 12, 2026. Summary: qs's arrayLimit bypass in comma parsing allows denial of service.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| qs project | qs | from 6.7.0 before 6.14.2 | application |
NVD analysis (status Analyzed), last modified June 17, 2026, 10:30 UTC.
How severe is CVE-2026-2391?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.3 | CVSS 4.0 | 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 | harborist |
| Low 3.7 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L | harborist |
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-2391 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: yes; technical impact: partial (CISA ADP, February 12, 2026)
- EPSS
- 0.53% probability of exploitation activity in the next 30 days, percentile 46.6 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-20 Improper Input Validation
Where are the vendor advisories and references?
- https://github.com/ljharb/qs/security/advisories/GHSA-w7fw-mjwx-w883 vendor-advisory
- https://github.com/ljharb/qs/commit/f6a7abff1f13d644db9b05fe4f2c98ada6bf8482 patch
When was it published, and where is the official record?
- Reserved
- February 12, 2026
- Published
- February 12, 2026, 04:39 UTC
- CVE record updated
- February 12, 2026, 17:32 UTC by harborist
- NVD
- Analyzed, last modified June 17, 2026, 10:30 UTC
- Last checked
- CVE list November 19, 2026, 07:09 UTC; NVD November 19, 2026, 07:13 UTC; KEV December 3, 2026, 11:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Qs?
- Dec 29, 2025CVE-2025-15284 Qs Project Qs: improper input validation
- Nov 26, 2022CVE-2022-24999 Qs Project Qs: prototype pollution
- Jul 13, 2017CVE-2017-1000048 Qs Project Qs: improper input validation
Questions about CVE-2026-2391
Is CVE-2026-2391 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 11:08 UTC. FIRST's EPSS gives it a 0.53% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Qs Project Qs are affected by CVE-2026-2391?
qs from 6.7.0 before 6.14.2, per the GitHub advisory GHSA-w7fw-mjwx-w883. The tables above give every range the sources list.
Which version fixes CVE-2026-2391?
6.14.2, per the GitHub advisory GHSA-w7fw-mjwx-w883. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-2391?
Medium (6.3, CVSS 4.0, from harborist). The severity table above shows each score with its source.
Where is the official record of CVE-2026-2391?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.