Resolve 56 of 68 website Dependabot vulnerabilities via yarn resolutions - #191
Merged
Merged
Conversation
Adds yarn `resolutions` pins bumping transitive dependencies of Docusaurus 2.4.3 to patched versions. All 68 alerts stem from Docusaurus 2.4.3's dependency tree; none are direct dependencies. Fixed (build + lint verified): @babel/core, axios, body-parser, cookie, got, minimatch, on-headers, qs, serialize-javascript, trim, uuid, ws — clearing 56 of the 68 advisories. Remaining 12 advisories (4 packages) cannot be fixed without upgrading Docusaurus 2 -> 3: - image-size: no patched version exists - webpack: pinned at 5.94.0 (bumping reintroduces the schema-utils v4 ProgressPlugin build break) - webpack-dev-server (dev-only) and path-to-regexp: patched versions require majors that break the Docusaurus 2.4.3 build (verified)
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
All 68 Dependabot alerts on the website stem from transitive dependencies of Docusaurus 2.4.3 — none are direct dependencies that can be bumped in
package.json. This PR adds scoped yarnresolutionsto pull the fixable transitive deps up to patched versions, clearing 56 of the 68 advisories while keeping the site building on Docusaurus 2.4.3.Fixed (12 packages, build + lint verified)
@babel/core,axios,body-parser,cookie,got,minimatch,on-headers,qs,serialize-javascript,trim,uuid,wsRemaining 12 advisories (4 packages) — require a Docusaurus 2 → 3 upgrade
image-sizepatched: <0.0.0)webpackProgressPluginbuild break fixed in the earlier PRwebpack-dev-serverpath-to-regexpThe cross-major forces (
ajv,js-yaml,webpack-dev-server) were tested and confirmed to break the build, so they were left out.Test plan
yarn installregenerates lockfile with all resolutions appliedyarn build(docusaurus production build) succeedsyarn lint:check(prettier) passesyarn auditconfirms 68 → 12 unique advisoriesbuildjob passesFollow-up
Fully clearing the remaining 12 requires upgrading Docusaurus 2.4.3 → 3.x, which refreshes the whole dependency tree (webpack 5.9x+, webpack-dev-server 5, path-to-regexp 8) and is a separate, larger change with breaking config/MDX migration.