Commit edadd45
Prevent prototype pollution on baseUnset function
* test: add tests to prevent security regressions
* sec: prevent prototype pollution on `baseUnset` function
* chore: improve security patch
- Expand both `_.omit` & `_.unset` security tests to loop over `__proto__`, `constructor`, `prototype`
- Only block `__proto__` if not an own property1 parent 4879a7a commit edadd45Copy full SHA for edadd45
File tree
Expand file treeCollapse file tree
4 files changed
+168
-60
lines changedOpen diff view settings
Filter options
- dist
- test
Expand file treeCollapse file tree
4 files changed
+168
-60
lines changedOpen diff view settings
Collapse file
+41-2Lines changed: 41 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4370 | 4370 | |
4371 | 4371 | |
4372 | 4372 | |
4373 | | - |
4374 | | - |
| 4373 | + |
| 4374 | + |
| 4375 | + |
| 4376 | + |
| 4377 | + |
| 4378 | + |
| 4379 | + |
| 4380 | + |
| 4381 | + |
| 4382 | + |
| 4383 | + |
| 4384 | + |
| 4385 | + |
| 4386 | + |
| 4387 | + |
| 4388 | + |
| 4389 | + |
| 4390 | + |
| 4391 | + |
| 4392 | + |
| 4393 | + |
| 4394 | + |
| 4395 | + |
| 4396 | + |
| 4397 | + |
| 4398 | + |
| 4399 | + |
| 4400 | + |
| 4401 | + |
| 4402 | + |
| 4403 | + |
| 4404 | + |
| 4405 | + |
| 4406 | + |
| 4407 | + |
| 4408 | + |
| 4409 | + |
| 4410 | + |
| 4411 | + |
| 4412 | + |
| 4413 | + |
4375 | 4414 | |
4376 | 4415 | |
4377 | 4416 | |
|
0 commit comments