Address high severity security advisories in examples#1970
Conversation
Resolves Dependabot alerts #173 (GHSA-v39h-62p7-jpjc, host confusion via percent-encoded authority delimiters and #172 (GHSA-q3j6-qgpj-74h6, path traversal via percent-encoded dot segments). fast-uri is a transitive devDependency via ajv; bumping within the existing ^3 range. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> EOF )
Resolves Dependabot alerts #158 (root), #156 (examples/rpc) and #154 (examples/data-tracks) for GHSA-r5fr-rjxr-66jc (code injection via lodash _.template import key names). lodash is a transitive devDependency (@trivago/prettier-plugin-sort-imports, concurrently). Pinned via pnpm overrides since the patched 4.18.0 release is outside the parent packages' declared ^4.17.x ranges. In pnpm 10 overrides live in pnpm-workspace.yaml, so this adds that file to each example app. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Resolves Dependabot alert #124 (GHSA-rf6f-7fwh-wjgh, prototype pollution via parse()). flatted is a transitive devDependency via flat-cache, whose ^3.4.2 range already required the patched version; the lockfile was stale. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Resolves Dependabot alert #120 (GHSA-5c6j-r48x-rmvq, RCE via RegExp.flags and Date.prototype.toISOString). serialize-javascript is a transitive devDependency of the terser build plugins, whose ^6 ranges predate the 7.0.3 fix, so it is pinned via a pnpm override. Resolves to 7.0.5. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
… advisories Resolves Dependabot alerts #122/#121 (examples/rpc) and #147/#146/#145/#144/ #143/#142/#140 (examples/data-tracks) for the node-tar path-traversal and DoS advisories (GHSA-9ppj-qmqm-q256, GHSA-qffp-2rhf-9h96, GHSA-83g3-92jg-28cx, GHSA-34x7-hfp2-rc4v, GHSA-r6q2-hw4h-h46w, GHSA-8qq5-rm4j-mr97, GHSA-f5x3-32g6-xq36). tar was pinned to ^4 by an old node-pre-gyp pulled in transitively via vite-plugin-mix (@vercel/nft). The patched line is >=7.5.11, a major bump, so it is forced via a pnpm override. Verified the data-tracks vite build (which exercises the vite-plugin-mix/@vercel/nft chain) still succeeds. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Resolves Dependabot alerts #128 (examples/rpc) and #148 (examples/data-tracks) for GHSA-c2c7-rcm5-vvqj (ReDoS via extglob quantifiers). picomatch is a transitive dependency via micromatch; 2.3.2 is the patched 2.x release and is within the existing range, so no override is needed. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…visory Resolves Dependabot alerts #135 (examples/rpc) and #151 (examples/data-tracks) for GHSA-j3q9-mxjg-w52f (DoS via sequential optional groups). path-to-regexp is a transitive dependency via router (express 5); 8.4.2 is within the existing range, so no override is needed. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
size-limit report 📦
|
| overrides: | ||
| lodash: '>=4.18.0' | ||
| # Security: node-tar path-traversal advisories (GHSA-9ppj-qmqm-q256, | ||
| # GHSA-qffp-2rhf-9h96, GHSA-83g3-92jg-28cx, GHSA-34x7-hfp2-rc4v, | ||
| # GHSA-r6q2-hw4h-h46w, GHSA-8qq5-rm4j-mr97, GHSA-f5x3-32g6-xq36). tar is | ||
| # pinned to ^4 by node-pre-gyp via vite-plugin-mix; force the patched line. | ||
| tar: '>=7.5.11' |
There was a problem hiding this comment.
thought: I'm not convinced doing this is the best way to handle some of these, I think that I have tended to prefer forcing updates to newer dependencies whenever possible rather than force overriding dependencies in the tree.
There was a problem hiding this comment.
yeah, not a fan of this either. I opened #1972 where I think all of these are addressed by simply updating the original dependencies that pull them in. I'd prefer that approach
There was a problem hiding this comment.
Nice, I do too too, approved over there ✅
There was a problem hiding this comment.
ah, I based mine on this PR, so this just got merged in here. I'll approve this one.
xianshijing-lk
left a comment
There was a problem hiding this comment.
defer to Lukas on the actually review, but you have my stamp
Warning
None of these security advisories effect the published
livekit-clientpackage, these are all in examplesI had a LLM agent go at this and I think update all the effected dependencies. Here's a summary:
0813b51a38345c598180b7968d8261081db6484784ebc5d2edd06e81