Skip to content

fix: address vite and lodash dependabot alerts#368

Merged
thymikee merged 2 commits into
mainfrom
codex/fix-dependabot-vite-lodash-es
Apr 8, 2026
Merged

fix: address vite and lodash dependabot alerts#368
thymikee merged 2 commits into
mainfrom
codex/fix-dependabot-vite-lodash-es

Conversation

@thymikee

@thymikee thymikee commented Apr 7, 2026

Copy link
Copy Markdown
Member

Summary

  • bump Vite to 8.0.7 to cover the open Vite advisories
  • bump @microsoft/api-extractor so the root toolchain resolves lodash 4.18.1 without an override
  • update the docs stack to @callstack/rspress-preset 0.6.1, @callstack/rspress-theme 0.6.1, and @rspress/core 2.0.8
  • keep a temporary pnpm override for lodash-es because the published @rspress/core/@rspress/shared packages still declare lodash-es ^4.17.23

The lodash-es override should be removed once the upstream Rspress dependency chain publishes a release that no longer requires it. The theme release from callstack/rspress-theme#121 is included here, but it is not sufficient on its own to remove the override.

Validation

  • pnpm check:tooling
  • pnpm --dir website build

@github-actions

github-actions Bot commented Apr 7, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://callstackincubator.github.io/agent-device/pr-preview/pr-368/

Built to branch gh-pages at 2026-04-07 19:11 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@thymikee thymikee merged commit c666680 into main Apr 8, 2026
16 checks passed
@thymikee thymikee deleted the codex/fix-dependabot-vite-lodash-es branch April 8, 2026 07:09
thymikee added a commit that referenced this pull request Jun 1, 2026
- Remove the no-op `lodash-es` override from the root package.json (leftover
  from #368). lodash-es is no longer in the dependency tree, so the override
  resolved to nothing; regenerating the root lockfile is a no-op.
- Add a comment to examples/test-app/pnpm-workspace.yaml explaining why the
  file exists, so it isn't "tidied away" and the override drift reintroduced.
thymikee added a commit that referenced this pull request Jun 1, 2026
* fix: resolve test-app dependabot alerts

The postcss/uuid overrides added in #464 stopped applying once test-app
ended up nested under the repo-root pnpm-workspace.yaml: pnpm only honors
overrides from a workspace root, so test-app's package.json `pnpm.overrides`
were silently ignored and the lockfile drifted back to vulnerable versions.

Move the overrides into a dedicated examples/test-app/pnpm-workspace.yaml so
test-app is its own pnpm root and the overrides are honored, and add scoped
overrides for the two remaining alerts:

- postcss   8.4.49 -> 8.5.12  (XSS in CSS stringify)
- uuid      7.0.3  -> 14.0.0  (missing buffer bounds check)
- ws@8      8.20.0 -> 8.21.0  (uninitialized memory disclosure)
- brace-expansion@5  5.0.5 -> 5.0.6  (ReDoS / max bypass)

ws and brace-expansion overrides are scoped to the vulnerable majors so the
non-vulnerable ws@7 / brace-expansion@1 copies in the tree are left untouched.

* chore: drop dead lodash-es override, document test-app workspace

- Remove the no-op `lodash-es` override from the root package.json (leftover
  from #368). lodash-es is no longer in the dependency tree, so the override
  resolved to nothing; regenerating the root lockfile is a no-op.
- Add a comment to examples/test-app/pnpm-workspace.yaml explaining why the
  file exists, so it isn't "tidied away" and the override drift reintroduced.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant