Skip to content

Conversation

@mdnsk
Copy link
Contributor

@mdnsk mdnsk commented Oct 23, 2024

Fixes prototype poisoning vulnerability.

Current output of deepClone:

deepClone({ user: 'John Doe', ['__proto__']: { admin: true } }).admin;
// true

Output of deepClone from this MR:

deepClone({ user: 'John Doe', ['__proto__']: { admin: true } }).admin;
// undefined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant