npm
CVE-2026-110816
qs : qs.stringify with arrayFormat 'comma' throws an uncaught TypeError on array elements carrying a non-callable own toString (DoS)
- Severity
- Medium 5.3
- Published
- 27 Oct 2026
- Last changed
- 27 Oct 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 6.16.1
- Exploit chance
- 0.4% in the next 30 daysHigher than 31% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Slow it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L- Also known as
- GHSA-6pq8-jhm2-2vcw
- Sources
- OSV.dev and GitHub
Description
qs.stringify(obj, { arrayFormat: 'comma' }) throws an uncaught TypeError: Cannot convert object to primitive value when an array in obj contains an element that carries an own, non-callable toString property (for example { a: [ { toString: 'x' } ] }). A remote, unauthenticated attacker who can influence an object that the application later re-serializes with the comma array format triggers the throw. In a service that lacks a synchronous error boundary around the serialization call, the uncaught exception crashes the worker process, producing a denial of service.
When arrayFormat: 'comma' is selected, the comma branch collapses the whole array into a single value via Array.prototype.join, or, under encodeValuesOnly: true, maps each element through the value encoder before joining. Both paths perform an implicit string coercion (ToPrimitive with hint "string") on each element.
Affected software
| Software | Affected versions |
|---|---|
qsnpm · osv:npm:qs |
|
About qs
- Weekly downloads (npm)
- 277,610,363npm, 22 Nov 2026
Vulnerabilities in qs
- In our list
- 7
- Published in the last 12 months
- 7
- Critical, last 12 months
- 0
- High, last 12 months
- 0
- Known exploited
- 0
- CVE-2026-110910qs.stringify with allowEmptyArrays does not encode the keys of empty arrays, allowing query string parameter injectionLow 3.7 27 Oct 2026
- CVE-2026-82562qs array-limit bypass via bracket-key comma parsingMedium 3.7 2 Sept 2026
- CVE-2026-82417qs: Denial of Service via Attacker Controlled isBufferMedium 5.3 2 Sept 2026
- CVE-2026-8723qs has a remotely triggerable DoS: qs.stringify crashes with TypeError on null/undefined entries in comma-format arrays when encodeValuesOnly is setMedium 5.3 22 May 2026
- CVE-2026-2391qs's arrayLimit bypass in comma parsing allows denial of serviceLow 3.7 12 Feb 2026
- CVE-2025-15284qs's arrayLimit bypass in its bracket notation allows DoS via memory exhaustionMedium 3.7 30 Dec 2025
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-110816
- GitHub Advisory Database https://github.com/advisories/GHSA-6pq8-jhm2-2vcw