Repository navigation
fix(deps): resolve high and moderate Dependabot alerts - #138
Merged
Merged
Conversation
Add pnpm overrides for vulnerable transitive dependencies (browserslist, fast-uri, @humanfs/node, @swc/html, http-proxy-middleware, joi, launch-editor, markdown-it, qs, uuid, webpack-dev-server) and bump Docusaurus to 3.10.2. image-size remains open because no patched release exists.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
Problem. Dependabot reports 7 high and 12 moderate open alerts. All are transitive dependencies pulled in by Docusaurus, webpack-dev-server, Jest, or ESLint, so none can be fixed by bumping a direct dependency alone.
Solution. Follow the approach from #125: add pnpm overrides in the root package.json that force each vulnerable package to its first patched version, capped below the next major so no override introduces a breaking upgrade. Docusaurus also moves from 3.10.1 to 3.10.2. Two high alerts for image-size remain open because the maintainers have not published a fixed release; there is nothing to override to.
What to look at.
package.json: the new override entries. The existing fast-uri override is tightened from 3.1.5 to 3.1.6 to cover four newer advisories.uuidis forced from 8.x to 11.x for sockjs. sockjs only callsv4(), which uuid 11 still exports through CommonJS. Verified by requiring uuid from sockjs's resolution path and calling it.AGENTS.md: short note documenting the override convention for future alerts.Test Plan.
pnpm install,pnpm build, andpnpm testpass across all packages.pnpm --filter docs buildsucceeds, which exercises webpack-dev-server, @swc/html, joi, and the other Docusaurus-side overrides.pnpm audit --audit-level moderatereports only the two image-size advisories.