Repository navigation
Commit 9d4bdb8
committed
fix(deps): override lodash-es to 4.18.1 under mermaid's chevrotain
lodash-es 4.17.23 has a high-severity advisory for code injection
through _.template imports keys (GHSA-r5fr-rjxr-66jc) and a moderate
one for prototype pollution in _.unset and _.omit
(GHSA-f23m-r3pf-42rh). It reaches the frontend bundle through mermaid
12.0.0, which pins chevrotain ~11.1.2, and chevrotain 11.1.2 pins
lodash-es to exactly 4.17.23, so no normal update can move it.
npm audit's suggested fix is to downgrade mermaid to 11.17.2. Mermaid
12.0.0 is the latest release, so an override is the smaller change.
4.18.0 changes behavior only in _.template, _.unset and _.omit, and
4.18.1 fixes a build regression in 4.18.0. Neither chevrotain nor
dagre-d3-es, the other lodash-es consumer, calls those three.
Drop this override once mermaid ships a newer chevrotain
(mermaid-js/mermaid#8273).1 parent 283b39f commit 9d4bdb8
2 files changed
Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
0 commit comments