Skip to content
Heist/ feed
Back to feed
Medium

node-qs — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2026-110816

### Summary `qs.stringify` with `arrayFormat: 'comma'` throws `TypeError: Cannot convert object to primitive value` when an array element cannot be coerced to a string, such as an object with an own non-callable `toString` (`{ "toString": "x" }`) or a null-prototype object. The comma format joins array elements with `Array.prototype.join` and, under `encodeValuesOnly`, first passes each element through `String()` in `utils.encode`; neither guards against an element whose string coercion fails. ### Details In `lib/stringify.js`, the comma branch collapses the array with `obj.join(',')`. For an element whose own `toString` is not callable, `ToPrimitive` skips it, falls through to `Object.prototype.valueOf` (which returns the object itself), and throws. Under `encodeValuesOnly: true`, the same element first reaches `String(str)` in `utils.encode` (`lib/utils.js`) and throws there. Nested arrays (`{ "a": [[{ "toString": "x" }]] }`) throw the same way, through `Array.prototype.toString`. The `indices`, `brackets`, and `repeat` formats walk into object elements instead of coercing them, and are not affected. Such elements can come from untrusted input. `JSON.parse` produces `{ "a": [{ "toString": "x" }] }` with no qs option involved. `qs.parse("a[0][toString]=x", { allowPrototypes: true })` keeps the `toString` key, and `qs.parse("a[][b]=c", { plainObjects: true })` produces a null-prototype element; the default parse options drop `toString` and produce ordinary objects, which do n

Products
node-qs
Affected versions
6.11.0+ds+~6.9.7-3, 6.11.0+ds+~6.9.7-4, 6.13.0+ds+~6.9.16-1, 6.14.1+ds+~6.14.0-1, 6.15.0+ds+~6.15.0-1, 6.15.0+ds+~6.15.0-2, 6.15.0+ds+~6.15.0-3, 6.15.2+ds+~6.15.1-1, 6.16.0+ds+~6.15.1-1
Fixed versions
Not specified
CVEs
CVE-2026-110816
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 23:37 UTC · Revision 1

Source evidence

DEBIAN-CVE-2026-110816

core-osv · Original source

Published 14 Oct 2026, 22:17 UTC

### Summary `qs.stringify` with `arrayFormat: 'comma'` throws `TypeError: Cannot convert object to primitive value` when an array element cannot be coerced to a string, such as an object with an own non-callable `toString` (`{ "toString": "x" }`) or a null-prototype object. The comma format joins array elements with `Array.prototype.join` and, under `encodeValuesOnly`, first passes each element through `String()` in `utils.encode`; neither guards against an element whose string coercion fails. ### Details In `lib/stringify.js`, the comma branch collapses the array with `obj.join(',')`. For an element whose own `toString` is not callable, `ToPrimitive` skips it, falls through to `Object.prototype.valueOf` (which returns the object itself), and throws. Under `encodeValuesOnly: true`, the same element first reaches `String(str)` in `utils.encode` (`lib/utils.js`) and throws there. Nested arrays (`{ "a": [[{ "toString": "x" }]] }`) throw the same way, through `Array.prototype.toString`. The `indices`, `brackets`, and `repeat` formats walk into object elements instead of coercing them, and are not affected. Such elements can come from untrusted input. `JSON.parse` produces `{ "a": [{ "toString": "x" }] }` with no qs option involved. `qs.parse("a[0][toString]=x", { allowPrototypes: true })` keeps the `toString` key, and `qs.parse("a[][b]=c", { plainObjects: true })` produces a null-prototype element; the default parse options drop `toString` and produce ordinary objects, which do n

osv:DEBIAN-CVE-2026-110816

node-qs

Fixed versions: Not specified

node-qs

Fixed versions: Not specified

node-qs

Fixed versions: Not specified

Complete source record
{
  "id": "c1f60da5d6c703ffa01ead80fb01caa6c7274b2a8f532b55715dfb5358df2202",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-110816",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2026-110816",
    "summary": "### Summary `qs.stringify` with `arrayFormat: 'comma'` throws `TypeError: Cannot convert object to primitive value` when an array element cannot be coerced to a string, such as an object with an own non-callable `toString` (`{ \"toString\": \"x\" }`) or a null-prototype object. The comma format joins array elements with `Array.prototype.join` and, under `encodeValuesOnly`, first passes each element through `String()` in `utils.encode`; neither guards against an element whose string coercion fails. ### Details In `lib/stringify.js`, the comma branch collapses the array with `obj.join(',')`. For an element whose own `toString` is not callable, `ToPrimitive` skips it, falls through to `Object.prototype.valueOf` (which returns the object itself), and throws. Under `encodeValuesOnly: true`, the same element first reaches `String(str)` in `utils.encode` (`lib/utils.js`) and throws there. Nested arrays (`{ \"a\": [[{ \"toString\": \"x\" }]] }`) throw the same way, through `Array.prototype.toString`. The `indices`, `brackets`, and `repeat` formats walk into object elements instead of coercing them, and are not affected. Such elements can come from untrusted input. `JSON.parse` produces `{ \"a\": [{ \"toString\": \"x\" }] }` with no qs option involved. `qs.parse(\"a[0][toString]=x\", { allowPrototypes: true })` keeps the `toString` key, and `qs.parse(\"a[][b]=c\", { plainObjects: true })` produces a null-prototype element; the default parse options drop `toString` and produce ordinary objects, which do n",
    "evidence": "osv:DEBIAN-CVE-2026-110816",
    "products": [
      {
        "name": {
          "value": "node-qs",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.11.0+ds+~6.9.7-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.11.0+ds+~6.9.7-4",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.13.0+ds+~6.9.16-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.14.1+ds+~6.14.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.15.0+ds+~6.15.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.15.0+ds+~6.15.0-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.15.0+ds+~6.15.0-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.15.2+ds+~6.15.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.16.0+ds+~6.15.1-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-qs",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.13.0+ds+~6.9.16-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "6.14.1+ds+~6.14.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "6.15.0+ds+~6.15.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "6.15.0+ds+~6.15.0-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "6.15.0+ds+~6.15.0-3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "6.15.2+ds+~6.15.1-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "6.16.0+ds+~6.15.1-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-qs",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.13.0+ds+~6.9.16-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "6.14.1+ds+~6.14.0-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "6.15.0+ds+~6.15.0-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "6.15.0+ds+~6.15.0-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "6.15.0+ds+~6.15.0-3",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "6.15.2+ds+~6.15.1-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "6.16.0+ds+~6.15.1-1",
            "evidence": "/affected/2/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2026-110816",
      "aliases": [
        "DEBIAN-CVE-2026-110816"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-qs",
            "purl": "pkg:deb/debian/node-qs?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "6.11.0+ds+~6.9.7-3",
            "6.11.0+ds+~6.9.7-4",
            "6.13.0+ds+~6.9.16-1",
            "6.14.1+ds+~6.14.0-1",
            "6.15.0+ds+~6.15.0-1",
            "6.15.0+ds+~6.15.0-2",
            "6.15.0+ds+~6.15.0-3",
            "6.15.2+ds+~6.15.1-1",
            "6.16.0+ds+~6.15.1-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-110816.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-qs",
            "purl": "pkg:deb/debian/node-qs?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "versions": [
            "6.13.0+ds+~6.9.16-1",
            "6.14.1+ds+~6.14.0-1",
            "6.15.0+ds+~6.15.0-1",
            "6.15.0+ds+~6.15.0-2",
            "6.15.0+ds+~6.15.0-3",
            "6.15.2+ds+~6.15.1-1",
            "6.16.0+ds+~6.15.1-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-110816.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-qs",
            "purl": "pkg:deb/debian/node-qs?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "versions": [
            "6.13.0+ds+~6.9.16-1",
            "6.14.1+ds+~6.14.0-1",
            "6.15.0+ds+~6.15.0-1",
            "6.15.0+ds+~6.15.0-2",
            "6.15.0+ds+~6.15.0-3",
            "6.15.2+ds+~6.15.1-1",
            "6.16.0+ds+~6.15.1-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-110816.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-23T17:47:48.741599415Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-110816"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2026-110816"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-110816",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 419066,
  "published_at": "2026-10-14T22:17:23.23+00:00"
}