Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. qs
  4. ›
  5. CVE-2026-110816

CVE-2026-110816: qs : qs.stringify with arrayFormat 'comma' throws an uncaught TypeError on array elements carrying a non-callable own toString (DoS)

October 27, 2026 (updated October 29, 2026)

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.

In project qs, in versions >= 6.7.0, <= 6.16.0 (every version that supports arrayFormat: 'comma'), qs.stringify with arrayFormat: 'comma' can throw an uncaught TypeError: Cannot convert object to primitive value when an array element has a non-callable own toString. It is fixed in 6.16.1. Related: CWE-248 and CWE-704.

References

  • github.com/advisories/GHSA-6pq8-jhm2-2vcw
  • github.com/ljharb/qs/commit/a952e7519338ef0cfb25694a2988848f93333727
  • github.com/ljharb/qs/releases/tag/v6.16.1
  • github.com/ljharb/qs/security/advisories/GHSA-6pq8-jhm2-2vcw
  • nvd.nist.gov/vuln/detail/CVE-2026-110816

Code Behaviors & Features

Detect and mitigate CVE-2026-110816 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 6.7.0 before 6.16.1

Fixed versions

  • 6.16.1

Solution

Upgrade to version 6.16.1 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-248: Uncaught Exception
  • CWE-704: Incorrect Type Conversion or Cast

Source file

npm/qs/CVE-2026-110816.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:20 +0000.