In lib/response.js
in res.cookie()
some assumptions are made that the incoming maxAge
option will always be a number. However, if maxAge
is set to undefined
through some process, opts.maxAge /= 1000
returns NaN
. maxAge
should be verified and/or coerced to be numeric.