Milamer parse-nested-form-data
Prototype Pollution in parse-nested-form-data via `__proto__` in FormData field names
parse-nested-form-data is a tiny node module for parsing FormData by name into objects and arrays. Prior to version 1.0.1, parseFormData() walks bracket and dot-notation FormData field names into nested objects without filtering reserved property keys. A single FormData field whose name begins with __proto__, or contains .__proto__. mid-path, causes the parser to traverse onto Object.prototype and assign properties there, polluting the prototype chain of every plain object in the running process. This issue has been patched in version 1.0.1.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.0.1
Fixed in 1.0.1
Mitigation
Upgrade parse-nested-form-data to 1.0.1 or later.
References
- Vendor advisory github.com/milamer/parse-nested-form-data/secu…
- Patch github.com/milamer/parse-nested-form-data/comm…
- Release notes github.com/milamer/parse-nested-form-data/rele…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.