Technical impact
The qs library’s stringify function, when allowEmptyArrays is set to true, omits encoding for the key of an empty array. If that key contains special characters such as & , = , or #, the resulting string becomes part of the query‑string syntax rather than literal data. As a result, an attacker who supplies such a key name can inject arbitrary query parameters or terminate the query string early. This flaw is a classic example of improper encoding (CWE‑116).
Affected Systems
The vulnerability is limited to the Node.js qs library (vendor ljharb). Versions 6.12.0 through 6.16.1, inclusive, are affected when allowEmptyArrays is enabled. All versions prior to 6.12.0 or 6.17.0 and later are not vulnerable.
Risk and Exploitability
With a CVSS score of 6.3 the flaw is considered moderate severity. EPSS score is < 1%, indicating an extremely low probability of exploitation at this time, but the vulnerability does not require privileged access and can be exploited as soon as an application forwards user‑controlled keys to qs.stringify with allowEmptyArrays enabled. The flaw is not listed in CISA’s KEV catalog, indicating no widely known exploitation, yet the injection potential makes it a realistic threat for any application that forwards untrusted query data. The most likely attack vectors are local or remote injection via user input that is subsequently serialized into a query string.