Skip to content

require('query-string').parse('hasOwnProperty&hasOwnProperty'); breaks #47

Closed
@cspotcode

Description

@cspotcode

Unsafe usage of hasOwnProperty means that parsing certain query strings will throw an error.

The following cases are also not working correctly:

qs.parse('__proto__');
qs.parse('__proto__&__proto__');

Object.create(null) should fix the problem.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions