Uncaught Exceptionorg.mvnpm:qs is a querystring parser that supports nesting and arrays, with a depth limit.
Affected versions of this package are vulnerable to Uncaught Exception via stringify when arrayFormat: 'comma' is used with array elements that have a non-callable toString property. Such elements - as produced by JSON.parse, or by qs.parse under allowPrototypes or plainObjects (which yields null-prototype objects) - cause Array.prototype.join or utils.encode to throw a TypeError: Cannot convert object to primitive value, crashing the process.
Note: This is only exploitable if the arrayFormat: 'comma' option is explicitly set.
How to fix Uncaught Exception? Upgrade org.mvnpm:qs to version 6.16.1 or higher.
| |
Uncaught Exceptionorg.mvnpm:qs is a querystring parser that supports nesting and arrays, with a depth limit.
Affected versions of this package are vulnerable to Uncaught Exception in the isBuffer() function in lib/utils.js, which calls obj.constructor.isBuffer(obj) without checking that it is callable, reached from stringify() at lib/stringify.js:127. An attacker can throw an uncaught TypeError that fails each request with HTTP 500, and terminates the worker process when stringify() runs in an unguarded async context, by supplying a query string such as x[constructor][isBuffer]=y that sets constructor.isBuffer to a non-function value. This requires the application to call qs.parse() with plainObjects: true or allowPrototypes: true, which preserves the constructor own property, and to then pass the parsed result to qs.stringify().
How to fix Uncaught Exception? Upgrade org.mvnpm:qs to version 6.16.0 or higher.
| |
Allocation of Resources Without Limits or Throttlingorg.mvnpm:qs is a querystring parser that supports nesting and arrays, with a depth limit.
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the parseArrayValue function when the comma option is in use. An attacker can exhaust system memory by submitting a parameter containing a large number of comma-separated values, resulting in the allocation of excessively large arrays.
Note:
This is only exploitable if the comma option is explicitly set to true. arrayLimit is properly enforced for index and bracket notation.
How to fix Allocation of Resources Without Limits or Throttling? Upgrade org.mvnpm:qs to version 6.14.2 or higher.
| |
Allocation of Resources Without Limits or Throttlingorg.mvnpm:qs is a querystring parser that supports nesting and arrays, with a depth limit.
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via improper enforcement of the arrayLimit option in bracket notation parsing. An attacker can exhaust server memory and cause application unavailability by submitting a large number of bracket notation parameters - like a[]=1&a[]=2 - in a single HTTP request.
How to fix Allocation of Resources Without Limits or Throttling? Upgrade org.mvnpm:qs to version 6.14.1 or higher.
| |