Skip to content

Commit 9d4bdb8

Browse files
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

File tree

‎packages/frontend/package-lock.json‎

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎packages/frontend/package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
},
7979
"eslint-plugin-react": {
8080
"eslint": "^10.10.0"
81-
}
81+
},
82+
"lodash-es": "^4.18.1"
8283
}
8384
}

0 commit comments

Comments
 (0)