Skip to content

Conversation

@colincasey
Copy link
Contributor

All occurrences of new object creation in memstore.js have been changed from {} (i.e.; Object.create(Object.prototype) to Object.create(null) so that we are using object instances that do not have a prototype property that can be polluted.

@fixes #282

All occurrences of new object creation in `memstore.js` have been changed from `{}` (i.e.; `Object.create(Object.prototype)` to `Object.create(null)` so that we are using object instances that do not have a prototype property that can be polluted.

@fixes #282
@colincasey colincasey requested review from awaterma and wjhsf June 3, 2023 19:14
@colincasey colincasey self-assigned this Jun 3, 2023
Copy link
Member

@awaterma awaterma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for jumping on this Colin. LGTM.

@awaterma awaterma merged commit 12d4747 into master Jun 5, 2023
colincasey added a commit that referenced this pull request Jun 19, 2023
@colincasey colincasey mentioned this pull request Jun 19, 2023
shaharduany added a commit to shaharduany/tough-cookie that referenced this pull request May 14, 2024
WeissShahar pushed a commit to WeissShahar/tough-cookie that referenced this pull request Jun 21, 2025
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.

Security Risk

3 participants