Intel

AIKIDO-2026-11104

@middy/http-json-body-parser is vulnerable to Prototype Pollution

Prototype Pollution Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published 4 days ago

59

Medium Risk

This Affects:

JS@middy/http-json-body-parser
1.0.0 - 7.6.6
Fixed in 7.6.7
Are you affected? Scan for Free

TL;DR

The @middy/http-json-body-parser middleware parses incoming HTTP request bodies as JSON using a reviver that only stripped the __proto__ key. Request bodies using a constructor key with a nested prototype object bypass this filter, so prototype-polluting keys survive parsing. When the parsed body is later merged or copied by the application, this can corrupt object prototypes, leading to denial of service or altered application behavior. The fix rejects bodies containing __proto__ or constructor.prototype keys with an HTTP 422 error.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

@middy/http-json-body-parser is vulnerable to Prototype Pollution in versions 1.0.0 - 7.6.6.

How to fix this

Upgrade the @middy/http-json-body-parser library to the patch version.