CVE-2026-8723: qs.stringify crashes on null/undefined entries in comma-format arrays under encodeValuesOnly
Noroxi assessment
Priority: Monitor (action score 25/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.39% (FIRST EPSS).
- Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
- According to CISA the attack is automatable: targets can be found by mass scanning.
- Fixed version: ljharb qs 6.15.2.
Low priority for now. Upgrade to ljharb qs 6.15.2 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
### Summary `qs.stringify` throws `TypeError` when called with `arrayFormat: 'comma'` and `encodeValuesOnly: true` on an array containing `null` or `undefined`. The throw is synchronous and not handled by any of qs's null-related options (`skipNulls`, `strictNullHandling`). ### Details In the comma + `encodeValuesOnly` branch, `lib/stringify.js:145` mapped the array through the raw encoder before joining: ```js obj = utils.maybeMap(obj, encoder); ``` `utils.encode` (`lib/utils.js:195`) reads `str.length` with no null guard, so a `null` or `undefined` element throws `TypeError`. `skipNulls` and `strictNullHandling` are both checked in the per-element loop below this line and never get a chance to run. Same class of bug as the filter-array path fixed in 0c180a4. The vulnerable shape of the comma + `encodeValuesOnly` branch was introduced in 4c4b23d ("encode comma values more consistently", PR #463, 2023-01-19), first released in v6.11.1. #### PoC ```js const qs = require('qs'); qs.stringify({ a: [null, 'b'] }, { arrayFormat: 'comma', encodeValuesOnly: true }); qs.stringify({ a: [undefined, 'b'] }, { arrayFormat: 'comma', encodeValuesOnly: true }); qs.stringify({ a: [null] }, { arrayFormat: 'comma', encodeValuesOnly: true }); // TypeError: Cannot read properties of null (reading 'length') // at encode (lib/utils.js:195:13) // at Object.maybeMap (lib/utils.js:322:37) // at stringify (lib/stringify.js:145:25) ``` #### Fix `lib/stringify.js:145`, applied in 21f80b3 on `main` and released as v6.15.2: ```diff - obj = utils.maybeMap(obj, encoder); + obj = utils.maybeMap(obj, function (v) { + return v == null ? v : encoder(v); + }); ``` `null` and `undefined` now pass through `maybeMap` unchanged and reach the `join(',')` step as-is. For `{ a: [null, 'b'] }` this produces `a=,b`, matching the non-`encodeValuesOnly` comma path (which already joins before encoding and produces `a=%2Cb` for the same input). Single-element `[null]` arrays still collapse via the existing `obj.join(',') || null` and remain subject to `skipNulls` / `strictNullHandling` in the main loop. ### Affected versions `>=6.11.1 <6.15.2` — fixed in v6.15.2. The vulnerable code shape was introduced in 4c4b23d and first shipped in v6.11.1. Earlier versions — including all of 6.7.x, 6.8.x, 6.9.x, 6.10.x, and 6.11.0 — implemented the comma + `encodeValuesOnly` path differently (joining before encoding) and are not affected. Empirically verified across released versions. ### Impact Application code that calls `qs.stringify` with both `arrayFormat: 'comma'` and `encodeValuesOnly: true` (both non-default) on input that may contain a `null` or `undefined` array element will throw synchronously instead of producing a query string. In a typical Node.js HTTP framework (Express, Fastify, Koa, hapi) the sync throw is caught by the framework's error boundary and the affected request returns a 500; the worker process does not exit and subsequent requests are unaffected. The "kills the worker process" framing applies only to call sites outside a request-handler error boundary (background jobs, startup paths, stream pipelines) or to deployments with framework error handling explicitly disabled. The vulnerable input is a `null` or `undefined` entry inside an array; this is reachable from JSON request bodies or from application code constructing arrays from user input, but not from standard HTML form submissions (which produce strings or omitted fields, not literal `null`).
- Published
- May 17, 2026
- Updated
- Oct 23, 2026
- EPSS
- 0.3% · 34th percentile
- CWE
- CWE-476
Report tools
Action score
25
Monitor
Low priority for now.
- CVSS
- 25 / 40 · 6.3 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.3%
CISA SSVC decision
- Exploitation
- proof of concept
- Automatable
- yes
- Technical impact
- partial
Vulnrichment: CISA's decision-tree inputs.
CNA vs NVD score
- NVD
- —
- CNA · harborist
- 5.3
- NVD has not scored this yet; the score shown is the CNA’s.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Running WordPress? Scan your site free with WP Lens
Noroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
—
Versions reported by the vendor
Affected version ranges reported by the assigning authority (harborist). Independent of NVD's CPE analysis and usually ahead of it.
ljharb qs
- 6.11.1 and later · before 6.15.2affected · semver
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | node-qs | from 0 | — |
| Debian:14 | node-qs | before 6.15.2+ds+~6.15.1-1 | 6.15.2+ds+~6.15.1-1 |
| npm | qs | from 6.11.1 · before 6.15.2 | 6.15.2 |
| Red Hat:hummingbird:1 | dotnet8.0 | before 0:8.0.127-1.hum1 | 0:8.0.127-1.hum1 |
| Red Hat:hummingbird:1 | nodejs20 | before 0:20.20.2-1.hum1 | 0:20.20.2-1.hum1 |
| Red Hat:hummingbird:1 | nodejs20-bin | before 0:20.20.2-1.hum1 | 0:20.20.2-1.hum1 |
| Red Hat:hummingbird:1 | nodejs20-devel | before 0:20.20.2-1.hum1 | 0:20.20.2-1.hum1 |
| Red Hat:hummingbird:1 | nodejs20-docs | before 0:20.20.2-1.hum1 | 0:20.20.2-1.hum1 |
| Red Hat:hummingbird:1 | nodejs20-full-i18n | before 0:20.20.2-1.hum1 | 0:20.20.2-1.hum1 |
| Red Hat:hummingbird:1 | nodejs20-libs | before 0:20.20.2-1.hum1 | 0:20.20.2-1.hum1 |
| Red Hat:hummingbird:1 | nodejs20-npm | before 0:10.8.2-1.20.20.2.1.hum1 | 0:10.8.2-1.20.20.2.1.hum1 |
| Red Hat:hummingbird:1 | nodejs20-npm-bin | before 0:20.20.2-1.hum1 | 0:20.20.2-1.hum1 |
| Red Hat:hummingbird:1 | python3.14 | before 0:3.14.6-1.4.hum1 | 0:3.14.6-1.4.hum1 |
| Red Hat:hummingbird:1 | python3.14 | before 0:3.14.6-1.1.hum1 | 0:3.14.6-1.1.hum1 |
| Red Hat:hummingbird:1 | python3.14-debug | before 0:3.14.6-1.1.hum1 | 0:3.14.6-1.1.hum1 |
| Red Hat:hummingbird:1 | python3.14-debug | before 0:3.14.6-1.4.hum1 | 0:3.14.6-1.4.hum1 |
| Red Hat:hummingbird:1 | python3.14-devel | before 0:3.14.6-1.4.hum1 | 0:3.14.6-1.4.hum1 |
| Red Hat:hummingbird:1 | python3.14-devel | before 0:3.14.6-1.1.hum1 | 0:3.14.6-1.1.hum1 |
| Red Hat:hummingbird:1 | python3.14-freethreading | before 0:3.14.6-1.1.hum1 | 0:3.14.6-1.1.hum1 |
| Red Hat:hummingbird:1 | python3.14-freethreading | before 0:3.14.6-1.4.hum1 | 0:3.14.6-1.4.hum1 |
| Red Hat:hummingbird:1 | python3.14-freethreading-debug | before 0:3.14.6-1.1.hum1 | 0:3.14.6-1.1.hum1 |
| Red Hat:hummingbird:1 | python3.14-freethreading-debug | before 0:3.14.6-1.4.hum1 | 0:3.14.6-1.4.hum1 |
| Red Hat:hummingbird:1 | python3.14-freethreading-devel | before 0:3.14.6-1.1.hum1 | 0:3.14.6-1.1.hum1 |
| Red Hat:hummingbird:1 | python3.14-freethreading-devel | before 0:3.14.6-1.4.hum1 | 0:3.14.6-1.4.hum1 |
+16
Same product
ljharb: all recordsOther highest-scoring records for the same primary product.
- CVE-2026-110910qs.stringify with allowEmptyArrays does not encode the keys of empty arrays, allowing query string parameter injection25Monitor
- CVE-2026-110816qs.stringify with arrayFormat comma throws TypeError on array elements that cannot be coerced to a string25Monitor
- CVE-2026-82562qs.parse does not enforce arrayLimit on comma groups under bracket-push keys when throwOnLimitExceeded is set (incomplete fix for CVE-2026-2391)25Monitor
Published before and after this one in the same product
- Later →CVE-2026-82417Aug 29, 2026 · qs.stringify throws TypeError on objects with a non-callable constructor.isBuffer property25Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| ljharb qs | 6.15.2 | Vendor (CNA) |
| debian:node-qs | 6.15.2+ds+~6.15.1-1 · Debian:14 | Package registry (OSV) |
| npm:qs | 6.15.2 | Package registry (OSV) |
| red hat:dotnet8.0 | 0:8.0.127-1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:nodejs20 | 0:20.20.2-1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:nodejs20-bin | 0:20.20.2-1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:python3.14 | 0:3.14.6-1.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:python3.14-debug | 0:3.14.6-1.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:python3.14-devel | 0:3.14.6-1.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:python3.14-freethreading | 0:3.14.6-1.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:python3.14-freethreading-debug | 0:3.14.6-1.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:python3.14-freethreading-devel | 0:3.14.6-1.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:python3.14-freethreading-idle | 0:3.14.6-1.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:python3.14-freethreading-libs | 0:3.14.6-1.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:python3.14-freethreading-test | 0:3.14.6-1.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:python3.14-freethreading-tkinter | 0:3.14.6-1.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
| red hat:python3.14-idle | 0:3.14.6-1.1.hum1 · Red Hat:hummingbird:1 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
No history yet (it accumulates with the daily EPSS job).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
- joannalangereporter
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- Integrity
- Availability
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- X
Weakness class (CWE)
CWE-476 · NULL Pointer DereferenceCVSS 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
nvd-secondary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (1 more)Show less
Vendor advisories and official records. Exploit/PoC links are deliberately left out.