<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-09-28T14:11:47.333366+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/cve-2026-8723</id>
    <title>CVE-2026-8723 — qs.stringify crashes on null/undefined entries in comma-format arrays under encodeValuesOnly</title>
    <updated>2026-09-28T14:11:47.524975+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> ljharb qs</p>
<p>### Summary</p>
<p>`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`).</p>
<p>### Details</p>
<p>In the comma + `encodeValuesOnly` branch, `lib/stringify.js:145` mapped the array through the raw encoder before joining:</p>
<p>```js</p>
<p>obj = utils.maybeMap(obj, encoder);</p>
<p>```</p>
<p>`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.</p>
<p>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.</p>
<p>#### PoC</p>
<p>```js</p>
<p>const qs = require('qs');</p>
<p>qs.stringify({ a: [null, 'b'] },      { arrayFormat: 'comma', encodeValuesOnly: true });</p>
<p>qs.stringify({ a: [undefined, 'b'] }, { arrayFormat: 'comma', encodeValuesOnly: true });</p>
<p>qs.stringify({ a: [null] },           { arrayFormat: 'comma', encodeValuesOnly: true });</p>
<p>// TypeError: Cannot read properties of null (reading 'length')</p>
<p>//     at encode (lib/utils.js:195:13)</p>
<p>//     at Object.maybeMap (lib/utils.js:322:37)</p>
<p>//     at stringify (lib/stringify.j…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2026-8723"/>
  </entry>
</feed>
