# CVE-2025-15284: arrayLimit bypass in bracket notation allows DoS via memory exhaustion

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.3
- **CVSS:** 6.3 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: None; Availability impact: Low; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.53% (percentile 38, 2026-11-26)
- **CWE:** CWE-20
- **Aliases:** GHSA-6rw7-vpxm-498p
- **Published:** 2025-12-29T22:56:45.240Z
- **Modified:** 2026-11-22T22:17:30.090Z

## Who should check

- Projects that depend on npm package qs (\< 6.14.1)
- Anyone running qs \< 6.14.1

## Description

Improper Input Validation vulnerability in qs (parse modules) allows HTTP DoS.

This issue affects qs: \< 6.14.1.


Summary





The 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.



Note: 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.

Details





The 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).



Vulnerable code (lib/parse.js:159-162):



if (root === '\[\]' && options.parseArrays) {
    obj = utils.combine(\[\], leaf);  // No arrayLimit check
}







Working code (lib/parse.js:175):



else if (index \<= options.arrayLimit) {  // Limit checked here
    obj = \[\];
    obj\[index\] = leaf;
}







The 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.





PoC





const qs = require('qs');
const result = qs.parse('a\[\]=1&a\[\]=2&a\[\]=3&a\[\]=4&a\[\]=5&a\[\]=6', { arrayLimit: 5 });
console.log(result.a.length);  // Output: 6 (should be max 5)







Note 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.

Impact



Consistency 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.

## Affected and fixed versions

- npm `qs`: affected \< 6.14.1; fixed 6.14.1 (osv)
- qs: \< 6.14.1 (cvelist)

## Mitigation

- Upgrade qs to 6.14.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-15284. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-15284.md
Affected: qs < 6.14.1
Fixed in: 6.14.1

Steps:
1. Search this machine and project for qs (npm), qs: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-15284 being exploited?

There is no confirmed exploitation: CVE-2025-15284 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.53% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-15284?

Medium: CVSS 6.3 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2025-15284?

qs \< 6.14.1.

### Is there a fix for CVE-2025-15284?

Yes. Fixed in 6.14.1. Upgrade qs to 6.14.1 or later.

### How do I check if I'm affected by CVE-2025-15284?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/ljharb/qs/security/advisories/GHSA-6rw7-vpxm-498p>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-15284>
- patch: <https://github.com/ljharb/qs/commit/3086902ecf7f088d0d1803887643ac6c03d415b9>
- other: <https://github.com/ljharb/qs>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-15284>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-6rw7-vpxm-498p> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-15284> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-15284>
