milamer/parse-nested-form-data

milamer/parse-nested-form-data

Releases2
Frequency3 years 3 months
Last Release
Stars46
A tiny node module for parsing FormData by name into objects and arrays

CVE History

CVEPublishedCVSS v3CVSS v2
8.2 HIGH

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.