Bump the npm_and_yarn group across 1 directory with 2 updates
Type: Pull Request
State: Closed
Association: Unknown
Comments: 2
(2 months ago)
(2 months ago)
(2 months ago)
triage dependencies javascript
Bumps the npm_and_yarn group with 2 updates in the / directory: lodash-es and path-to-regexp.
Updates lodash-es from 4.17.23 to 4.18.1
Release notes
Sourced from lodash-es's releases.
4.18.1
Bugs
Fixes a
ReferenceErrorissue inlodashlodash-eslodash-amdandlodash.templatewhen using thetemplateandfromPairsfunctions from the modular builds. See lodash/lodash#6167These defects were related to how lodash distributions are built from the main branch using https://github.com/lodash-archive/lodash-cli. When internal dependencies change inside lodash functions, equivalent updates need to be made to a mapping in the lodash-cli. (hey, it was ahead of its time once upon a time!). We know this, but we missed it in the last release. It's the kind of thing that passes in CI, but fails bc the build is not the same thing you tested.
There is no diff on main for this, but you can see the diffs for each of the npm packages on their respective branches:
lodash: https://github.com/lodash/lodash/compare/4.18.0-npm...4.18.1-npmlodash-es: https://github.com/lodash/lodash/compare/4.18.0-es...4.18.1-eslodash-amd: https://github.com/lodash/lodash/compare/4.18.0-amd...4.18.1-amdlodash.templatehttps://github.com/lodash/lodash/compare/4.18.0-npm-packages...4.18.1-npm-packages4.18.0
v4.18.0
Full Changelog: https://github.com/lodash/lodash/compare/4.17.23...4.18.0
Security
_.unset/_.omit: Fixed prototype pollution viaconstructor/prototypepath traversal (GHSA-f23m-r3pf-42rh, fe8d32e). Previously, array-wrapped path segments and primitive roots could bypass the existing guards, allowing deletion of properties from built-in prototypes. Nowconstructorandprototypeare blocked unconditionally as non-terminal path keys, matchingbaseSet. Calls that previously returnedtrueand deleted the property now returnfalseand leave the target untouched.
_.template: Fixed code injection viaimportskeys (GHSA-r5fr-rjxr-66jc, CVE-2026-4800, 879aaa9). Fixes an incomplete patch for CVE-2021-23337. Thevariableoption was validated againstreForbiddenIdentifierCharsbutimportsKeyswas left unguarded, allowing code injection via the sameFunction()constructor sink.importskeys containing forbidden identifier characters now throw"Invalid imports option passed into _.template".Docs
- Add security notice for
_.templatein threat model and API docs (#6099)- Document
lower > upperbehavior in_.random(#6115)- Fix quotes in
_.compactjsdoc (#6090)
lodash.*modular packagesWe have also regenerated and published a select number of the
lodash.*modular packages.These modular packages had fallen out of sync significantly from the minor/patch updates to lodash. Specifically, we have brought the following packages up to parity w/ the latest lodash release because they have had CVEs on them in the past:
Commits
cb0b9b9release(patch): bump main to 4.18.1 (#6177)75535f5chore: prune stale advisory refs (#6170)62e91bcdocs: remove n_ Node.js < 6 REPL note from README (#6165)59be2derelease(minor): bump to 4.18.0 (#6161)af63457fix: broken tests for _.template 879aaa91073a76fix: linting issues879aaa9fix: validate imports keys in _.templatefe8d32efix: block prototype pollution in baseUnset via constructor/prototype traversal18ba0a3refactor(fromPairs): use baseAssignValue for consistent assignment (#6153)b819080ci: add dist sync validation workflow (#6137)- Additional commits viewable in compare view
Updates path-to-regexp from 8.2.0 to 8.4.2
Release notes
Sourced from path-to-regexp's releases.
v8.4.2
Fixed
- Error on trailing backslash (#434) 9a78879
Performance
- Minimize array allocations (#437) 937c02d
- Improve compile performance (#436) 57247e6
- Should improve compilation performance by ~25%
- Remove internal tokenization during parse (#435) 5844988
- Should improve parse performance by ~20%
Bundle size to 1.93 kB, from 1.97 kB.
https://github.com/pillarjs/path-to-regexp/compare/v8.4.1...v8.4.2
v8.4.1
Fixed
- Remove trie deduplication (#431) 6bc8e84
- Using a trie required non-greedy matching, which regressed wildcards in non-ending mode by matching them up until the first match. For example:
/*foowith/a/b=/a/*foo.htmlwith/a/b.html/c.html=/a/b.html- Allow backtrack handling to match itself (#427) 5bcd30b
- When backtracking was introduced, it rejected matching things like
/:"a"_:"b" against/foo__. This makes intuitive sense because the second parameter is not going to backtrack onanymore, but it's somewhat unexpected since there's no reason it shouldn't match the second`.
https://github.com/pillarjs/path-to-regexp/compare/v8.4.0...v8.4.1
v8.4.0
Important
Fixed
- Restricts wildcard backtracking when using more than 1 in a path (pillarjs/path-to-regexp#421)
Changed
- Dedupes regex prefixes (pillarjs/path-to-regexp#422)
- This will result in shorter regular expressions for some cases using optional groups
- Rejects large optional route combinations (pillarjs/path-to-regexp#424)
- When using groups such as
/users{/delete}it will restrict the number of generated combinations to < 256, equivalent to 8 top-level optional groups and unlikely to occur in a real world application, but avoids exploding the regex size for applications that accept user created routes
... (truncated)
Commits
cbf30258.4.2937c02dMinimize array allocations (#437)57247e6Improve compile performance (#436)5844988Remove internal tokenization during parse (#435)9a78879Error on trailing backslash (#434)7f058768.4.16bc8e84Remove trie deduplication (#431)5bcd30bAllow backtrack handling to match itself (#427)9f9c6c5Add parsing to benchmarks (#418)9fd31e0Addtrailing: falsetests (#428)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore <dependency name> major versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)@dependabot ignore <dependency name> minor versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)@dependabot ignore <dependency name>will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)@dependabot unignore <dependency name>will remove all of the ignore conditions of the specified dependency@dependabot unignore <dependency name> <ignore condition>will remove the ignore condition of the specified dependency and ignore conditions
You can disable automated security fix PRs for this repo from the Security Alerts page.
Package Dependencies
Technical Details
| ID: | 14969129 |
| UUID: | 4192657206 |
| Node ID: | PR_kwDOC01lZ87Pe4bP |
| Host: | GitHub |
| Repository: | github/docs |