@hapi/content: Quadratic-time parsing of Content-Disposition enables denial of service
The @hapi/content library, used by the hapi Node.js framework and by @hapi/pez for multipart/form-data parsing, has a flaw in Content.disposition(). A Content-Disposition header with a long parameter token that has no equals sign causes quadratic processing that can block the Node.js event loop. An unauthenticated remote attacker can stall a single-instance service with one crafted multipart request, and applications that pass untrusted headers directly to Content.disposition() are also affected.
hapi project · @hapi/content
