Repository navigation
build(deps): update frontend dependencies for security advisories - #238
Merged
Merged
Conversation
Update Next.js to 16.4.3. 16.4.1 is the first release with fixes for GHSA-2464-fhr4-w9xw, GHSA-673q-mjm6-r5xr and GHSA-p3m5-59mp-jv5r, and 16.4.x also carries the 16.3.8 fixes. Update Vite to 8.1.6 and Vitest to 4.1.12. Several pnpm overrides pinned exact versions that are now vulnerable (brace-expansion 1.1.18 and 2.1.4, undici 7.29.0 under jsdom), which stopped the patched releases from resolving. Use ranges from the first patched versions instead, raise the js-yaml and undici floors, and refresh browserslist, source-map-js, fflate, zod, @humanfs/node and postcss-selector-parser. Add a three-day minimumReleaseAge so local resolution skips releases published in the last three days. Next.js is excluded so security releases can be adopted immediately. Frozen installs are unaffected. Signed-off-by: Jason Madigan <jason@jasonmadigan.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Next.js 16.3.8 (#236) does not fix GHSA-2464-fhr4-w9xw, GHSA-673q-mjm6-r5xr or GHSA-p3m5-59mp-jv5r. 16.4.1 is the first release with those fixes, and 16.4.3 adds backported bug fixes on top. This replaces #236 and #237.
The exact override pins were themselves vulnerable, and they stopped Dependabot and
pnpm updatefrom resolving the patched transitive versions. Ranges starting at the first patched version fix that. browserslist, source-map-js, fflate, zod, @humanfs/node and postcss-selector-parser are refreshed within their existing ranges.frontend/pnpm-workspace.yamlsetsminimumReleaseAge: 4320, so resolving new versions skips releases younger than three days.nextand@next/*are excluded so security releases can be adopted the same day. Frozen installs (CI and Docker) do not re-check locked versions: a frozen install of a lockfile containing a one-day-old release still succeeds. Both Dockerfiles copy the file so image installs see the same pnpm settings.One advisory remains: postcss-selector-parser GHSA-rj75-hqrm-r3gf is fixed only in 7.1.6, and tailwindcss 3.4.19 still requires
^6.1.2. Tailwind uses it to parse the project's own CSS at build time.Evidence
pnpm auditreports 48 advisories (2 critical, 16 high, 24 moderate, 6 low).After: 1 moderate (postcss-selector-parser, above).
nextand@next/*16.4.3 (published with npm provenance). None of them has an install script.node:20-slimcontainer: eslint reports 0 errors (the same 9 warnings asmain),tsc --noEmitpasses, vitest passes 29 files and 275 tests.docker buildof this branch with fix(docker): install current Pillow and torch dependencies in the image #239 succeeds, and the container starts:GET /returns 200 through nginx, andGET /api/versionreturns 200 once the backend is up.Merge Danger
Door: two-way
Blast Radius: frontend
Next.js moves from 16.3 to 16.4, a minor release that changes the production server and build. The e2e suite covers the upload, tracing and export flows.