Commit eba8431
authored
Merge commit from fork
* 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 property
References:
- https://github.com/lodash/lodash-ghsa-xxjr-mmjv-4gpg/pull/1#issuecomment-3507207439
- https://github.com/lodash/lodash-ghsa-xxjr-mmjv-4gpg/pull/1#issuecomment-35088917771 parent 4879a7a commit eba8431
4 files changed
+168
-60
lines changed| 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