Skip to content

chore(deps): resolve Snyk findings in web and website - #37

Open
adrijshikhar wants to merge 2 commits into
mainfrom
chore/snyk-dependency-fixes
Open

adrijshikhar wants to merge 2 commits into
mainfrom
chore/snyk-dependency-fixes

Conversation

@adrijshikhar

@adrijshikhar adrijshikhar commented Sep 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

Resolves the Snyk open-source findings in web/ and website/. The Go module was already clean and is not changed.

Changes

Subproject Package Before After Notes
web vite 5.4.21 8.3.1 Major. Removes esbuild 0.21.5 from the tree
web vitest 2.1.9 5.0.2 Major. Brings @vitest/mocker 5.0.2
web @vitejs/plugin-react 4.x 6.1.1 Required for vite 8 (peer vite ^8)
website astro 7.3.2 7.3.5 In range (bun update)
website devalue 5.9.2 5.9.4 Transitive via astro
website vite (hoisted, via @tailwindcss/vite) 6.4.3 8.3.1 Deduped onto astro's vite; esbuild 0.25.12 gone
website @tailwindcss/vite, tailwindcss, typescript — — Range floors bumped by bun update, no new majors

No source, config or test changes were needed. vite.config.ts (with the inline test block) works unchanged on vite 8 / vitest 5.

Snyk results (snyk test --all-projects --dev)

Severity Before After
Critical 3 0
High 5 2
Medium 2 0
Total 10 2

The 'Before' column is the original report. A baseline re-run on origin/main for this PR found 8 (2 critical, 5 high, 1 medium) because it didn't flag website's esbuild 0.25.12. esbuild 0.25.12 no longer appears in website/bun.lock either way.

Fixed: esbuild 0.21.5 (critical), vitest 2.1.9 (critical), esbuild 0.25.12 via website vite 6.4.3, @vitest/mocker 2.1.9 (high), vite 5.4.21 (high + medium), devalue 5.9.2 (high).

bun audit also reports nothing in either subproject (it found 7 in web before).

Remaining findings

Package Severity Issue Reason
http-cache-semantics@4.2.0 (via astro) High SNYK-JS-HTTPCACHESEMANTICS-19964064, Origin Validation Error No fixed version upstream. 4.2.0 is the latest release
http-cache-semantics@4.2.0 (via astro) High SNYK-JS-HTTPCACHESEMANTICS-19964068, Improper Authorization Same, no fix available

Both are only in the build-time static marketing site and nothing ships them to users. Revisit when upstream releases a fix or astro drops the dependency.

Notes

  • vite 8 and vitest 5 require Node ^20.19 / >=22.12. jsdom@30 already required Node >=22.22, so this doesn't raise the floor.
  • The 1 MB-chunk size warning from vite build was already there before this change.
  • bun run check in website/ asks to install @astrojs/check. That dependency was never added, and CI doesn't run the check.

Test plan

  • web: rm -rf node_modules && bun install --frozen-lockfile
  • web: bun run build (tsc -b + vite build)
  • web: bun run test, 19 files / 157 tests pass
  • web: bun run format:check
  • website: rm -rf node_modules && bun install --frozen-lockfile
  • website: bun run build, 13 pages
  • CI steps: make ui and go test -race ./... pass
  • Snyk rescan and bun audit in both subprojects
  • Manual: bun run dev in web/ against a running backend. Check the /api proxy, the event list and the charts
  • Manual: bun run preview in website/ and click through the landing page and /docs

Resolves Snyk findings in esbuild 0.21.5 (critical), vitest 2.1.9 (critical),
@vitest/mocker 2.1.9 (high) and vite 5.4.21 (high, medium). No config or
test changes were required.
Bumps astro to 7.3.5 and devalue to 5.9.4 (fixes SNYK-JS-DEVALUE-20044498),
and drops the hoisted vite 6.4.3 / esbuild 0.25.12 in favour of vite 8.3.1.
Copilot AI lite review requested due to automatic review settings September 28, 2026 05:33

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​vitest@​2.1.9 ⏵ 5.0.298 +1100 +7579 +199100
Updatednpm/​astro@​7.3.2 ⏵ 7.3.59810088 +197100
Updatednpm/​@​vitejs/​plugin-react@​4.7.0 ⏵ 6.1.1100 +110010093100

View full report

This branch has not been deployed

No deployments
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.

2 participants