Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

lodash/lodash
main @ a023532
23
Fixes
10
CVEs
CRITICAL
Peak severity
63.2%
Coverage
Highlights
Prototype Pollution: 17 prior fixes. Scrutinize any change in this area.
lodash.js: most-fixed (20 issues). Treat as high-risk during review.
19 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Prototype Pollution: Recursive object merging and property assignment methods consistently fail to block access to critical prototype properties, enabling remote attackers to overwrite global Object behavior. This has been targeted repeatedly across several high-profile CVEs.
Code Injection: The `_.template` function processes options dynamically via the `Function` constructor. Failing to validate keys in `imports`, variables, or normalizing whitespace in `sourceURL` directly leads to arbitrary remote code execution during template compilation.
Prototype Pollution: Path manipulation functions such as `baseUnset` (which powers `_.unset` and `_.omit`) have repeatedly leaked the ability to traverse and delete properties of built-in prototypes using array-wrapped paths.