{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-82417","published":"2026-08-30T00:16:34.657000Z","last_modified":"2026-09-03T18:00:36.970000Z","status":"Awaiting Analysis","cvss":{"version":"4.0","score":6.3,"severity":"MEDIUM","vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","source":"7ffcee3d-2c14-4c3e-b844-86c6a321a158","primary":false},"auth":false,"cwes":["CWE-248","CWE-703"],"cpes":[],"cpes_truncated":false,"vendors":["ljharb"],"products":["ljharb/qs"],"ssvc":{"exploitation":"poc","automatable":"yes","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-4mjr-xmp4-gh2g","ecosystem":"npm","name":"qs","purl":"pkg:npm/qs","ranges":[{"introduced":"2.2.5","fixed":"6.16.0"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":53,"links":{"html_es":"/es/cve/CVE-2026-82417/","html_en":"/en/cve/CVE-2026-82417/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-82417","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-82417"},"untrusted":{"vendor_name":"ljharb","product_name":"qs","desc_en":"### Summary\n\n\n\n`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`.\n\n\n\n### Details\n\n\n\n`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.\n\n\n\nSuch 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.\n\n\n\n#### PoC\n\n\n\n```js\n\n\n\nvar qs = require(\"qs\");\n\n\n\nqs.stringify(qs.parse(\"x[constructor][isBuffer]=y\", { plainObjects: true }));\n\n\n\nqs.stringify(JSON.parse(\"{\\\"a\\\":{\\\"constructor\\\":{\\\"isBuffer\\\":\\\"x\\\"}}}\"));\n\n\n\n// TypeError: obj.constructor.isBuffer is not a function\n\n\n\n//     at Object.isBuffer (lib/utils.js:332:78)\n\n\n\n//     at stringify (lib/stringify.js:127:45)\n\n\n\n```\n\n\n\n#### Fix\n\n\n\n`lib/utils.js`, applied in e83d321 on `main` and released as v6.16.0:\n\n\n\n```diff\n\n\n\n- return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));\n\n\n\n+ return !!(obj.constructor && typeof obj.constructor.isBuffer === \"function\" && obj.constructor.isBuffer(obj));\n\n\n\n```\n\n\n\nReal `Buffer`, `safer-buffer`, and browserify `buffer` polyfill instances serialize exactly as before; only the throw is removed.\n\n\n\n### Affected versions\n\n\n\n`>=2.2.5 <6.16.0`, fixed in v6.16.0.\n\n\n\nThe 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.\n\n\n\n### Impact\n\n\n\nAn 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.","affected":[{"untrusted_vendor":"ljharb","untrusted_product":"qs","versions":[]}],"references":[{"url":"https://github.com/ljharb/qs/commit/e83d321ffafb38cf210683ac31714fce6ce1c6c6","tags":[]},{"url":"https://github.com/ljharb/qs/security/advisories/GHSA-4mjr-xmp4-gh2g","tags":[]}]},"bulletins":[{"source":"suse","id":"openSUSE-SU-2026:12622-1","url":"https://www.suse.com/support/update/","published":"2026-11-19T00:00:00+00:00","severity":"critical","exploited":false,"untrusted":{"title":"velociraptor-0.77.3.0.git141.b1612b50b-1.1 on GA media"}},{"source":"redhat","id":"RHSA-2026:62544","url":"https://access.redhat.com/errata/RHSA-2026:62544","published":"2026-09-05T10:17:19+00:00","severity":"medium","exploited":false,"untrusted":{"title":"Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update"}},{"source":"redhat","id":"RHSA-2026:63164","url":"https://access.redhat.com/errata/RHSA-2026:63164","published":"2026-09-04T10:13:59+00:00","severity":"high","exploited":false,"untrusted":{"title":"Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update"}}]}