{"id":"CVE-2025-15284","published":"2025-12-29T22:56:45Z","modified":"2026-11-22T21:24:38Z","title":"arrayLimit bypass in bracket notation allows DoS via memory exhaustion","vendor":null,"product":null,"tier":"tail","description":{"text":"Improper Input Validation vulnerability in qs (parse modules) allows HTTP DoS.\n\nThis issue affects qs: < 6.14.1.\n\n\nSummary\n\n\n\n\n\nThe arrayLimit option in qs did not enforce limits for bracket notation (a[]=1&a[]=2), only for indexed notation (a[0]=1). This is a consistency bug; arrayLimit should apply uniformly across all array notations.\n\n\n\nNote: The default parameterLimit of 1000 effectively mitigates the DoS scenario originally described. With default options, bracket notation cannot produce arrays larger than parameterLimit regardless of arrayLimit, because each a[]=valueconsumes one parameter slot. The severity has been reduced accordingly.\n\nDetails\n\n\n\n\n\nThe arrayLimit option only checked limits for indexed notation (a[0]=1&a[1]=2) but did not enforce it for bracket notation (a[]=1&a[]=2).\n\n\n\nVulnerable code (lib/parse.js:159-162):\n\n\n\nif (root === '[]' && options.parseArrays) {\n    obj = utils.combine([], leaf);  // No arrayLimit check\n}\n\n\n\n\n\n\n\nWorking code (lib/parse.js:175):\n\n\n\nelse if (index <= options.arrayLimit) {  // Limit checked here\n    obj = [];\n    obj[index] = leaf;\n}\n\n\n\n\n\n\n\nThe bracket notation handler at line 159 uses utils.combine([], leaf) without validating against options.arrayLimit, while indexed notation at line 175 checks index <= options.arrayLimit before creating arrays.\n\n\n\n\n\nPoC\n\n\n\n\n\nconst qs = require('qs');\nconst result = qs.parse('a[]=1&a[]=2&a[]=3&a[]=4&a[]=5&a[]=6', { arrayLimit: 5 });\nconsole.log(result.a.length);  // Output: 6 (should be max 5)\n\n\n\n\n\n\n\nNote on parameterLimit interaction: The original advisory's \"DoS demonstration\" claimed a length of 10,000, but parameterLimit (default: 1000) caps parsing to 1,000 parameters. With default options, the actual output is 1,000, not 10,000.\n\nImpact\n\n\n\nConsistency bug in arrayLimit enforcement. With default parameterLimit, the practical DoS risk is negligible since parameterLimit already caps the total number of parsed parameters (and thus array elements from bracket notation). The risk increases only when parameterLimit is explicitly set to a very high value.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.7,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00533,"percentile":0.38426,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/ljharb/qs/security/advisories/GHSA-6rw7-vpxm-498p","tags":["vendor-advisory"]},{"url":"https://github.com/ljharb/qs/commit/3086902ecf7f088d0d1803887643ac6c03d415b9","tags":["patch"]}],"priority":{"score":10.3,"factors":[{"name":"EPSS percentile","points":7.69},{"name":"CVSS severity","points":2.59}]},"affectedVersions":[{"vendor":null,"product":null,"versions":["< 6.14.1"]}],"capec":[{"id":"CAPEC-469","name":"HTTP DoS"}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-12-30T14:55:26.031863Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"qs","vulnerableRanges":["<6.14.1"],"patched":["6.14.1"],"from":["GHSA-6rw7-vpxm-498p"],"provenance":"source"}],"summary":{"text":"The qs library's parse module (versions before 6.14.1) fails to enforce the arrayLimit option for bracket notation arrays such as a[]=1&a[]=2, although it does enforce the limit for indexed notation such as a[0]=1. An attacker who can send HTTP requests to an application that parses untrusted query strings with qs can cause excessive memory consumption, but this requires an explicitly raised parameterLimit, since the default limit of 1000 parameters largely prevents the condition.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:05:18Z"},"euvd":{"id":"EUVD-2025-205660","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-ljharb-qs-cve-2025-15284","children":[{"from":"CVE-2025-15284","to":"CVE-2026-2391","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:qs","fromFixed":"6.14.1","toFixed":"6.14.2","daysApart":45},{"kind":"same-code","provenance":"machine","files":["lib/parse.js"],"commits":["https://github.com/ljharb/qs/commit/3086902ecf7f088d0d1803887643ac6c03d415b9","https://github.com/ljharb/qs/commit/f6a7abff1f13d644db9b05fe4f2c98ada6bf8482"],"basis":"shared function","functions":["parseQueryStringValues"]}]},{"from":"CVE-2025-15284","to":"CVE-2026-110816","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/utils.js"],"commits":["https://github.com/ljharb/qs/commit/3086902ecf7f088d0d1803887643ac6c03d415b9","https://github.com/ljharb/qs/commit/a952e7519338ef0cfb25694a2988848f93333727"],"basis":"rarely changed file"}]},{"from":"CVE-2025-15284","to":"CVE-2026-82417","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/utils.js"],"commits":["https://github.com/ljharb/qs/commit/3086902ecf7f088d0d1803887643ac6c03d415b9","https://github.com/ljharb/qs/commit/e83d321ffafb38cf210683ac31714fce6ce1c6c6"],"basis":"shared function","functions":["isBuffer"]}]},{"from":"CVE-2025-15284","to":"CVE-2026-82562","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/parse.js"],"commits":["https://github.com/ljharb/qs/commit/3086902ecf7f088d0d1803887643ac6c03d415b9","https://github.com/ljharb/qs/commit/8859c37470e11b42b547b275e4e9bd0bc8cc5464"],"basis":"shared function","functions":["parseQueryStringValues"]}]}],"packageHistory":[{"cve":"CVE-2014-7191","published":"2014-10-19","fixed":"1.0.0","kev":false},{"cve":"CVE-2017-1000048","published":"2017-07-13","fixed":"6.3.2","kev":false},{"cve":"CVE-2022-24999","published":"2022-11-26","fixed":"6.10.3","kev":false},{"cve":"CVE-2025-15284","published":"2025-12-29","fixed":"6.14.1","kev":false},{"cve":"CVE-2026-2391","published":"2026-02-12","fixed":"6.14.2","kev":false},{"cve":"CVE-2026-8723","published":"2026-05-16","fixed":"6.15.2","kev":false},{"cve":"CVE-2026-82417","published":"2026-08-29","fixed":"6.16.0","kev":false}],"package":"npm:qs"}}