fix(utils): prevent prototype pollution in deepMerge#2630
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2630 +/- ##
=======================================
Coverage 100.0% 100.0%
=======================================
Files 200 200
Lines 25285 25286 +1
Branches 8945 8945
=======================================
+ Hits 25283 25284 +1
Misses 2 2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
angular-slickgrid
aurelia-slickgrid
slickgrid-react
slickgrid-vue
@slickgrid-universal/angular-row-detail-plugin
@slickgrid-universal/aurelia-row-detail-plugin
@slickgrid-universal/react-row-detail-plugin
@slickgrid-universal/vue-row-detail-plugin
@slickgrid-universal/binding
@slickgrid-universal/common
@slickgrid-universal/composite-editor-component
@slickgrid-universal/custom-footer-component
@slickgrid-universal/custom-tooltip-plugin
@slickgrid-universal/empty-warning-component
@slickgrid-universal/event-pub-sub
@slickgrid-universal/excel-export
@slickgrid-universal/graphql
@slickgrid-universal/odata
@slickgrid-universal/pagination-component
@slickgrid-universal/pdf-export
@slickgrid-universal/row-detail-view-plugin
@slickgrid-universal/rxjs-observable
@slickgrid-universal/sql
@slickgrid-universal/text-export
@slickgrid-universal/utils
@slickgrid-universal/vanilla-bundle
@slickgrid-universal/vanilla-force-bundle
@slickgrid-universal/web-mcp
commit: |
|
Thanks but asking the AI, it says the following: What still remains an issue
What I would change in the proposal (small but important)
if (Object.prototype.hasOwnProperty.call(target, prop)) { ... }
|
bbe30c2 to
66b54e7
Compare
|
@ghiscoding Good point about I updated the patch to use I kept the plain-object restriction out of this PR for now because it may be a broader behavioral change for existing users of |
|
ok let's go with that, did you intend to do more PRs or should I push a patch release with this? |
|
Thanks! I only found this specific issue during my scan, so I do not plan to open more PRs for now. A patch release with this fix would be great. Also, as a small process suggestion, would you consider adding a SECURITY.md file and enabling GitHub Private Vulnerability Reporting for this repository? That would give researchers a clear private channel for future security reports. If you consider this issue security-relevant, I would also appreciate it if you could publish a GitHub Security Advisory for it, so affected users can be properly notified and the fix can be tracked through the usual advisory workflow. Thanks again for the quick response and review! |
|
🎉 This pull request is included in version 10.8.2 📦 |
fixes #2629