-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Apply security and bug fixes from 87a677c81 to main.js #6069
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: amd
Are you sure you want to change the base?
Conversation
jdalton
commented
Dec 17, 2025
- Fix prototype pollution in baseSet and baseUnset
- Fix cyclic value comparison in equalArrays and equalObjects
- Fix command injection vulnerability in template (variable validation, sourceURL whitespace)
- Add array iteratee handling in baseOrderBy
- Add early return for empty arrays in baseSortedIndexBy
- Fix sortBy JSDoc example ages
- Fix setCacheHas JSDoc return type
- Fix prototype pollution in baseSet and baseUnset - Fix cyclic value comparison in equalArrays and equalObjects - Fix command injection vulnerability in template (variable validation, sourceURL whitespace) - Add array iteratee handling in baseOrderBy - Add early return for empty arrays in baseSortedIndexBy - Fix sortBy JSDoc example ages - Fix setCacheHas JSDoc return type
jonchurch
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reviewing...
|
@jdalton |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@falsyvalues beat me by 1 minute!
This is missing the baseTrim and baseTrimEndIndex changes
We also havea JSDoc update that hasn't landed in main yet, not a blocker but we want to make sure we land that change into main.
falsyvalues
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
Luckily the commands to regenerate this file are captured in the header comment. It's hinky bc it requires using @bnjmnt4n's forked lodash-cli (as the lodas-cli is archived, but changes were needed to it, and we need those changes here as well)
Caveats which are indicative of the issues w/ treating main's lodash.js as source of truth, but it currently having drifted slightly:
|
plus the setCacheHas JSDoc tweak bc see it fix it aye
|
I pushed the result of regenerating from main in bcbbbbc |
|
@falsyvalues did @jonchurch's fix tackle it? |
falsyvalues
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Except of this additional change, the rest looks good!
* @returns {boolean} Returns `true` if `value` is found, else `false`.