form2json
form2json copied to clipboard
Alternative decoder for form-urlencoded data
Current version of the module's middleware is broken. Due to: ``` javascript exports.middleware = function form2json(req, res, next) { if (!req.json) { var flat = req.body || req.query req.json =...
I just updated to connect 0.5.8 and got a message '/connect/middleware/bodyDecoder' not found. I changed the declaration to : require('connect').middleware.bodyDecoder.decode['application/x-www-form-urlencoded'] = require('[email protected]').decode; And it works fine.
Prototype pollution vulnerability in function transform() in node_modules\form2json\lib\form2json.js in form2json0.1.0 https://cheatsheetseries.owasp.org/cheatsheets/Prototype_Pollution_Prevention_Cheat_Sheet.html