cve.bz

CVE-2026-82417 ljharb qs: Uncaught Exception

6.3 mediumEPSS 0.4%Fix available

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

On this page
### Summary `qs.stringify` throws a `TypeError` when it serializes an object whose own `constructor` property has a truthy, non-callable `isBuffer` member. `utils.isBuffer` duck-types buffers by calling `obj.constructor.isBuffer(obj)` after checking only that the property is truthy, so a value such as `{ constructor: { isBuffer: "x" } }` makes the call throw `TypeError: obj.constructor.isBuffer is not a function`. ### Details `lib/stringify.js:127` calls `utils.isBuffer` on every non-primitive value it serializes. `utils.isBuffer` (`lib/utils.js:332`) reads `obj.constructor.isBuffer` and invokes it without verifying that it is a function. `constructor` and `isBuffer` are ordinary property names, so any object carrying them as own properties reaches the unchecked call. Such an object can be built from untrusted input. `qs.parse("x[constructor][isBuffer]=y", { plainObjects: true })` or `{ allowPrototypes: true }` keeps the `constructor` key as an own property (the default parse options drop it), and `JSON.parse("{\"a\":{\"constructor\":{\"isBuffer\":\"x\"}}}")` produces the same shape with no qs option involved. Express 4 with its default `query parser` setting and body-parser with `extended: true` both call `qs.parse` with `allowPrototypes: true`, so on those stacks `req.query` and `req.body` can carry the shape directly. #### PoC ```js var qs = require("qs"); qs.stringify(qs.parse("x[constructor][isBuffer]=y", { plainObjects: true })); qs.stringify(JSON.parse("{\"a\":{\"constructor\":{\"isBuffer\":\"x\"}}}")); // TypeError: obj.constructor.isBuffer is not a function // at Object.isBuffer (lib/utils.js:332:78) // at stringify (lib/stringify.js:127:45) ``` #### Fix `lib/utils.js`, applied in e83d321 on `main` and released as v6.16.0: ```diff - return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj)); + return !!(obj.constructor && typeof obj.constructor.isBuffer === "function" && obj.constructor.isBuffer(obj)); ``` Real `Buffer`, `safer-buffer`, and browserify `buffer` polyfill instances serialize exactly as before; only the throw is removed. ### Affected versions `>=2.2.5 <6.16.0`, fixed in v6.16.0. The unguarded duck-type was introduced in 3768a75 and first shipped in v2.2.5 (September 2014). v2.2.4 and earlier used `Buffer.isBuffer` and are not affected. Every release from v2.2.5 through v6.15.3 contains the unguarded call. ### Impact An unauthenticated request can make any code path that re-serializes attacker-influenced data with `qs.stringify` (for example, rebuilding a query string from `req.query` for a redirect or an upstream request, or serializing a parsed JSON body) throw synchronously. In a typical Node.js HTTP framework the throw is caught by the framework error boundary and the affected request returns a 500; the process survives and other requests are unaffected. Where the call runs outside an error boundary, such as an `async` Express 4 handler (where the throw becomes an unhandled promise rejection) or a background job, the process exits, so the impact in that case depends on the application error handling rather than on qs.

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

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 35th 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: yes · 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.
CWEs
CWE-248 Uncaught Exception
CWE-703 Improper Check or Handling of Exceptional Conditions
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
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-82417 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-82417?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-82417?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-82417 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 2.2.5 before 6.16.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-4mjr-xmp4-gh2gnpmqs>=2.2.5 <6.16.06.16.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13node-qsno fix listedDEBIAN-CVE-2026-82417
Debian14node-qs6.16.0+ds+~6.15.1-1DEBIAN-CVE-2026-82417
Ubuntu16.04:LTS, 18.04:LTS, 22.04:LTS and 5 morenode-qsno fix listedUBUNTU-CVE-2026-82417
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
Azure Linux3js-jqueryno fix listedAZL-98331
Azure Linux3nodejs-nodemonno fix listedAZL-98334
Azure Linux3python-tensorboardno fix listedAZL-98397

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; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

A denial of service vulnerability was found in the qs package for Node.js. The stringify function does not verify that constructor.isBuffer is callable before invoking it. An attacker who can influence object shape, for example through query parameters parsed with allowPrototypes: true as Express 4 does by default, can cause qs.stringify to throw a TypeError when that data is re-serialized. In typical Node.js HTTP frameworks the error is caught per request and returns HTTP 500. In code paths without an error boundary, such as async handlers or background jobs, the process may exit.

Red Hat's mitigation

If an immediate upgrade to qs 6.16.0 is not feasible, avoid re-serializing attacker-influenced parsed query or body objects with qs.stringify. Where qs.parse is used directly, set allowPrototypes: false unless prototype keys are required. For Express applications, review whether the default query parser configuration is necessary. Wrapping qs.stringify calls in try/catch can limit impact to individual requests.

ProductPackageStateAdvisory
Cryostat 4 on RHEL 9cryostat/cryostat-openshift-console-plugin-rhel9:4.2.0-19Fixed 2026-11-04RHSA-2026:95360
Cluster Observability Operator 1.5cluster-observability-operator/distributed-tracing-console-plugin-pf4-rhel9:1793661804Fixed 2026-11-04RHSA-2026:95081
Cluster Observability Operator 1.5cluster-observability-operator/distributed-tracing-console-plugin-pf5-rhel9:1793664067Fixed 2026-11-04RHSA-2026:95081
Cluster Observability Operator 1.5cluster-observability-operator/distributed-tracing-console-plugin-pf6-rhel9:1793662261Fixed 2026-11-04RHSA-2026:95081
Cluster Observability Operator 1.5cluster-observability-operator/distributed-tracing-console-plugin-rhel9:1793661918Fixed 2026-11-04RHSA-2026:95081
Cluster Observability Operator 1.5cluster-observability-operator/distributed-tracing-console-plugin-pf4-rhel9:1793823428Fixed 2026-11-05RHSA-2026:95591
Cluster Observability Operator 1.5cluster-observability-operator/distributed-tracing-console-plugin-pf5-rhel9:1793825585Fixed 2026-11-05RHSA-2026:95591
Cluster Observability Operator 1.5cluster-observability-operator/distributed-tracing-console-plugin-pf6-rhel9:1793822910Fixed 2026-11-05RHSA-2026:95591
Cluster Observability Operator 1.5cluster-observability-operator/distributed-tracing-console-plugin-rhel9:1793824908Fixed 2026-11-05RHSA-2026:95591
Red Hat Advanced Cluster Security for Kubernetes 4.11advanced-cluster-security/rhacs-main-rhel9:1789411320Fixed 2026-09-15RHSA-2026:67714
Ansible Automation Orchestrator 2026ansible-automation-platform/automation-orchestrator-ui-rhel9Affected
Cost Management On Premisecostmanagement/costmanagement-ui-rhel10Affected
Gatekeeper 3gatekeeper/gatekeeper-rhel9Not affected
Migration Toolkit for Applications 8mta/mta-solution-server-rhel9Not affected
Multicluster Engine for Kubernetesmulticluster-engine/console-mce-rhel9Not affected
Node HealthCheck Operatorworkload-availability/node-healthcheck-must-gather-rhel9Affected
Node HealthCheck Operatorworkload-availability/node-healthcheck-operator-bundleAffected
Node HealthCheck Operatorworkload-availability/node-healthcheck-rhel9-operatorAffected
Node HealthCheck Operatorworkload-availability/node-remediation-console-rhel8Affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-agentic-console-rhel9Affected
161 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-82417.

References

Check your stackJSON