PT-2026-7816 · Pypi · Qs
Sharokhataie
·
Published
2026-02-12
·
Updated
2026-05-19
·
CVE-2026-2391
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
qs (affected versions not specified)
Description
The
arrayLimit option in the qs library does not correctly enforce limits when parsing comma-separated values with the comma option enabled. This allows attackers to potentially cause a denial-of-service (DoS) condition by exhausting memory resources. The issue arises because the limit check occurs after the comma-handling logic, enabling a bypass of the intended array size restriction. Specifically, the split(',') function returns the array immediately, skipping the subsequent limit check. An attacker can send a single parameter containing a large number of commas (e.g., ?param=,,,,,,,,...) to allocate a massive array in memory, bypassing the arrayLimit setting. The vulnerable code is located in lib/parse.js lines 40-50. The arrayLimit check is bypassed when the comma option is set to true.Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
RCE
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Qs