CVE-2026-8723: Qs Stringify Comma MaybeMap Unguarded Encoder

Passing the raw `encoder` callback directly to `utils.maybeMap` over an array means `null`/`undefined` entries reach `utils.encode`, which dereferences `str.length` and throws `TypeError: Cannot read properties of null (reading 'length')`. Under `arrayFormat: 'comma'` + `encodeValuesOnly: true`, this aborts stringification before `skipNulls` or `strictNullHa

Provally CuratedPublic repositoryMediumHigh confidenceVerifiedApache-2.0JS
greprules fetch cve-2026-8723-qs-stringify-comma-maybemap-unguarded-encoder --engine opengrep

Description

Passing the raw `encoder` callback directly to `utils.maybeMap` over an array means `null`/`undefined` entries reach `utils.encode`, which dereferences `str.length` and throws `TypeError: Cannot read properties of null (reading 'length')`. Under `arrayFormat: 'comma'` + `encodeValuesOnly: true`, this aborts stringification before `skipNulls` or `strictNullHa