cve.bz

CVE-2026-82562 ljharb qs

6.3 mediumEPSS 0.5%Fix available

Medium (6.3) in ljharb qs. EPSS 0.5% estimated probability of exploitation activity in the next 30 days. Fixed in qs 6.16.0.

On this page
### Summary When `qs.parse` is called with `comma: true` and `throwOnLimitExceeded: true`, a comma-separated value under a bracket-push key (`a[]=1,2,3,4`) is split into an array without being compared against `arrayLimit`, while the same value under a flat key (`a=1,2,3,4`), an indexed key (`a[0]=`), a nested key (`a[b]=`), or a dotted key (`a.b=` with `allowDots`) throws the documented `RangeError`. A single parameter such as `a[]=1,2,2,...` therefore produces an inner array of arbitrary length even though the caller opted into the hard limit. This is the `[]=` key form that the fix for CVE-2026-2391 (qs 6.14.2) did not cover. ### Details In `lib/parse.js`, a comma-separated value under a `[]=` key is split and then wrapped as a single nested element (`val = [val]`, so that each `a[]=x,y` group counts as one element of the outer array). The `arrayLimit` check that 6.14.2 added for comma values runs after that wrap, so for `[]=` parts it only ever saw the wrapper of length 1. 6.15.3 added a pre-split comma count so that an oversized value throws before it is allocated, but gated it on an `isFlatArrayValue` flag that `parseValues` set to `false` for any part containing `[]=`, and did not pass it for object-valued input, so the gap remained. #### PoC ```js var qs = require('qs'); var options = { comma: true, arrayLimit: 3, throwOnLimitExceeded: true }; qs.parse('a=1,2,3,4', options); // RangeError: Array limit exceeded. Only 3 elements allowed in an array. qs.parse('a[]=1,2,3,4', options); // { a: [ [ '1', '2', '3', '4' ] ] } (no throw) qs.parse('a[]=' + '1,'.repeat(1000000) + '1', { comma: true, arrayLimit: 20, throwOnLimitExceeded: true }); // no throw; a 1,000,001-element inner array is allocated ``` #### Fix `lib/parse.js`, applied in 8859c37 on `main` and released as v6.16.0: the `isFlatArrayValue` gate is removed, so every comma-split value is counted against `arrayLimit` before splitting regardless of key form. An in-limit group under `a[]=` still counts as one element of the outer array, and the default (`throwOnLimitExceeded: false`) path is unchanged. ### Affected versions `>=6.14.2 <6.16.0`, fixed in v6.16.0. v6.14.2 introduced `arrayLimit` enforcement for comma values (the fix for CVE-2026-2391) but only for values not under a `[]=` key, and every release from v6.14.2 through v6.15.3 has the same gap. v6.14.0 and v6.14.1, where `throwOnLimitExceeded` exists but does not apply to any comma form, are covered by CVE-2026-2391 rather than this record. Earlier lines (6.7.x through 6.13.x) have `comma` but no `throwOnLimitExceeded`, so there is no hard cap on any comma path to bypass; releases before 6.7.0 have no `comma` option. ### Impact An unauthenticated attacker who can reach an application that parses untrusted query strings or urlencoded bodies with both `comma: true` and `throwOnLimitExceeded: true` (both non-default) can bypass the configured limit with a single `a[]=` parameter and force the parser to allocate an array proportional to the request size. The cost is strictly linear in the attacker-supplied bytes (about 0.1 microseconds and 6 to 7 retained bytes per input byte; the same out-of-memory threshold as the documented default `throwOnLimitExceeded: false` path), so a transport-layer request or body size limit bounds it completely (and node's default maximum HTTP header size of 16 KB already bounds the request line, so multi-megabyte payloads need a body parser). The impact is that an opt-in hard limit fails open on one key spelling, not unbounded allocation from a small input.

Severity

CVSS 4.0

6.3 medium
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

CVSS 3.1

3.7 low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 46th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2026-08-31. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-770 Allocation of Resources Without Limits or Throttling
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-82562 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-82562?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-82562?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-82562 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
ljharb qsfrom 6.14.2 before 6.16.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-x5fp-wj9c-mxmxnpmqs>=6.14.2 <6.16.06.16.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13node-qsno fix listedDEBIAN-CVE-2026-82562
Debian14node-qs6.16.0+ds+~6.15.1-1DEBIAN-CVE-2026-82562
Ubuntu16.04:LTS, 18.04:LTS, 22.04:LTS and 5 morenode-qsno fix listedUBUNTU-CVE-2026-82562
Red Hathummingbird:1grafana12.40:12.4.9-0.4.hum1RHSA-2026:60866
Red Hathummingbird:1grafana13.10:13.1.3-0.4.hum1RHSA-2026:62544
Red Hathummingbird:1grafana13.20:13.2.1-0.1.hum1RHSA-2026:63164
openSUSETumbleweedvelociraptor0.77.3.0.git141.b1612b50b-1.1openSUSE-SU-2026:12622-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · openSUSE.

Red Hat

Red Hat rates this Low.

Red Hat's statement

A flaw was found in the qs npm package. When an application calls qs.parse() with both comma:true and throwOnLimitExceeded:true enabled (both non-default options), a comma-separated value under a bracket-push key (for example, a[]=1,2,3,4) can bypass the configured arrayLimit and allocate an oversized array, causing denial of service in that application process. This is an incomplete fix for a related issue addressed in qs 6.14.2 (CVE-2026-2391). Red Hat products that bundle qs in the affected version range may be impacted if they parse untrusted query strings or urlencoded request bodies with both options enabled. The availability impact is limited to the application process using qs; host operating systems are not at risk of availability degradation due to this flaw.

Red Hat's mitigation

Until an updated qs dependency is available in your Red Hat product, limit exposure as follows:

1. If your application calls qs.parse() directly, avoid enabling both comma:true and throwOnLimitExceeded:true when parsing untrusted query strings or urlencoded request bodies. Disable one of these non-default options, or upgrade qs to version 6.16.0 or later.

2. Where qs is included only as a transitive dependency, apply product updates that ship qs 6.16.0 or later when they become available.

3. Enforce HTTP request-line and request-body size limits at your ingress or application server. Because allocated memory scales with attacker-supplied input size, transport-layer limits bound worst-case impact.

Host operating systems are not directly affected. These steps apply to application processes that use qs with the vulnerable configuration.

ProductPackageStateAdvisory
Red Hat Hardened Imagesgrafana12-4-main-12.4.9-0.4.hum1Fixed 2026-08-29RHSA-2026:60866
Red Hat Hardened Imagesgrafana13-1-main-13.1.3-0.4.hum1Fixed 2026-09-02RHSA-2026:62544
Red Hat Hardened Imagesgrafana13-2-main-13.2.1-0.1.hum1Fixed 2026-09-03RHSA-2026:63164
Red Hat OpenShift Dev Spaces 3.30devspaces/dashboard-rhel9:1789162884Fixed 2026-09-17RHSA-2026:68754
Red Hat OpenShift Dev Spaces 3.31devspaces/code-rhel9:1792599388Fixed 2026-10-26RHSA-2026:90321
Red Hat OpenShift Dev Spaces 3.31devspaces/jetbrains-ide-rhel9:1792476427Fixed 2026-10-26RHSA-2026:90321
Red Hat OpenShift Dev Spaces 3.31devspaces/openvsx-rhel9:1792494821Fixed 2026-10-26RHSA-2026:90321
Red Hat OpenShift Dev Spaces 3.31devspaces/pluginregistry-rhel9:1792495212Fixed 2026-10-26RHSA-2026:90321
Ansible Automation Orchestrator 2026ansible-automation-platform/automation-orchestrator-ui-rhel9Fix deferred
Cost Management On Premisecostmanagement/costmanagement-ui-rhel10Fix deferred
Cryostat 4cryostat/cryostat-openshift-console-plugin-rhel9Fix deferred
Gatekeeper 3gatekeeper/gatekeeper-rhel9Fix deferred
Migration Toolkit for Applications 8mta/mta-solution-server-rhel9Fix deferred
Migration Toolkit for Applications 8mta/mta-ui-rhel9Fix deferred
Migration Toolkit for Containersrhmtc/openshift-migration-ui-rhel8Fix deferred
Multicluster Engine for Kubernetesmulticluster-engine/console-mce-rhel9Fix deferred
Node HealthCheck Operatorworkload-availability/node-healthcheck-must-gather-rhel9Out of support scope
Node HealthCheck Operatorworkload-availability/node-healthcheck-operator-bundleOut of support scope
Node HealthCheck Operatorworkload-availability/node-healthcheck-rhel9-operatorOut of support scope
Node HealthCheck Operatorworkload-availability/node-remediation-console-rhel8Out of support scope
132 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-82562.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-770 (20).

References

Check your stackJSON