Resolve 7 Dependabot vulnerabilities (postcss, ip-address, vite)#11
Merged
Conversation
Pins transitive deps to patched versions: - postcss ^8.5.10 (GHSA-qx2v-qp2m-jg93, XSS via unescaped </style>) - ip-address ^10.1.1 (GHSA-v2v4-37r5-5v8g, XSS in Address6 HTML methods) - vite ^6.4.2 (GHSA-p9ff-h696-f583, GHSA-4w7w-66w2-5vf9) - vite ^7.3.2 (GHSA-p9ff-h696-f583, GHSA-4w7w-66w2-5vf9, GHSA-v2wj-q39q-566r) Lockfile resolves to postcss 8.5.14, ip-address 10.2.0, vite 6.4.2, vite 7.3.2. Build, vitest (103/103), and playwright CT (35/35) all pass.
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
Closes 7 open Dependabot alerts on
mainby adding entries to the rootresolutionsfield inpackage.json, forcing transitive deps to patched versions.Approach
Used yarn
resolutionsrather than bumping direct deps, since all vulnerable versions are pulled in transitively (postcss via styled-components/vite, ip-address via socks, vite via vitest and the caml-react devDep). Both vite v6 (caml-react) and vite v7 (vitest) lines are kept, each pinned to its patched version — no major bumps needed.Test plan
yarn installresolves cleanly with no lockfile drift after second runyarn build(both packages compile)yarn test— 103/103 vitest passyarn test:ctin caml-react — 35/35 playwright CT pass