qs is vulnerable to Denial of Service (DoS)
53
Medium Risk
The utils.isBuffer helper duck-types buffers by reading obj.constructor.isBuffer and invoking it after only checking that the property is truthy. Parsing untrusted input with plainObjects or allowPrototypes can produce an object whose constructor.isBuffer is a truthy non-callable value, so a later stringify call invokes a non-function and throws an uncaught TypeError. The exception aborts serialization of externally influenced data and can crash the request handler or worker process when it runs outside an error boundary. The fix verifies that constructor.isBuffer is a function before calling it.
You are affected if you are using a version that falls within the vulnerable range and you call stringify on objects parsed from untrusted input with the plainObjects or allowPrototypes option enabled.
qs is vulnerable to Denial of Service (DoS) in versions 2.2.5 - 6.15.3.
Upgrade the qs library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.