CVE-2026-8723: CWE-476 NULL Pointer Dereference in ljharb qs
CVE-2026-8723 is a medium-severity vulnerability in the ljharb qs library versions 6. 11. 1 up to but not including 6. 15. 2. When qs. stringify is called with the options arrayFormat: 'comma' and encodeValuesOnly: true on arrays containing null or undefined elements, it throws a synchronous TypeError due to a null pointer dereference. This error causes the affected request to return a 500 status in typical Node. js HTTP frameworks but does not crash the worker process. The issue was fixed in version 6.
AI Analysis
Technical Summary
The vulnerability arises from qs.stringify's handling of arrays when both arrayFormat: 'comma' and encodeValuesOnly: true are set. The code attempts to encode array elements without null checks, leading to a TypeError when encountering null or undefined values. This occurs because the encoder reads the length property of these nullish values without guarding against them. The bug was introduced in version 6.11.1 and fixed in 6.15.2 by bypassing encoding for null or undefined elements before joining the array into a string.
Potential Impact
Applications using vulnerable versions of qs (>=6.11.1 <6.15.2) with the specified options and input containing null or undefined array elements will experience synchronous exceptions causing HTTP 500 errors in request handlers. This does not lead to worker process crashes under typical Node.js frameworks with error boundaries. The impact is limited to denial of service for affected requests and does not affect confidentiality or integrity.
Mitigation Recommendations
Upgrade to qs version 6.15.2 or later, where the issue is fixed. If upgrading is not immediately possible, avoid calling qs.stringify with both arrayFormat: 'comma' and encodeValuesOnly: true on arrays that may contain null or undefined values. Patch status is not explicitly stated in the vendor advisory, but the fix is included in version 6.15.2 as per the provided details.
CVE-2026-8723: CWE-476 NULL Pointer Dereference in ljharb qs
Description
CVE-2026-8723 is a medium-severity vulnerability in the ljharb qs library versions 6. 11. 1 up to but not including 6. 15. 2. When qs. stringify is called with the options arrayFormat: 'comma' and encodeValuesOnly: true on arrays containing null or undefined elements, it throws a synchronous TypeError due to a null pointer dereference. This error causes the affected request to return a 500 status in typical Node. js HTTP frameworks but does not crash the worker process. The issue was fixed in version 6.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises from qs.stringify's handling of arrays when both arrayFormat: 'comma' and encodeValuesOnly: true are set. The code attempts to encode array elements without null checks, leading to a TypeError when encountering null or undefined values. This occurs because the encoder reads the length property of these nullish values without guarding against them. The bug was introduced in version 6.11.1 and fixed in 6.15.2 by bypassing encoding for null or undefined elements before joining the array into a string.
Potential Impact
Applications using vulnerable versions of qs (>=6.11.1 <6.15.2) with the specified options and input containing null or undefined array elements will experience synchronous exceptions causing HTTP 500 errors in request handlers. This does not lead to worker process crashes under typical Node.js frameworks with error boundaries. The impact is limited to denial of service for affected requests and does not affect confidentiality or integrity.
Mitigation Recommendations
Upgrade to qs version 6.15.2 or later, where the issue is fixed. If upgrading is not immediately possible, avoid calling qs.stringify with both arrayFormat: 'comma' and encodeValuesOnly: true on arrays that may contain null or undefined values. Patch status is not explicitly stated in the vendor advisory, but the fix is included in version 6.15.2 as per the provided details.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- harborist
- Date Reserved
- 2026-05-16T06:26:43.607Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a08ff87ec166c07b03552dd
Added to database: 5/16/2026, 11:36:39 PM
Last enriched: 5/16/2026, 11:51:35 PM
Last updated: 5/17/2026, 12:39:52 AM
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.