Skip to content

Resolve remaining dependabot alerts in d3_graph_generator#111

Closed
dduugg wants to merge 1 commit into
mainfrom
fix-remaining-dependabot-alerts
Closed

Resolve remaining dependabot alerts in d3_graph_generator#111
dduugg wants to merge 1 commit into
mainfrom
fix-remaining-dependabot-alerts

Conversation

@dduugg

@dduugg dduugg commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Summary

The 17 auto-generated Dependabot PRs already merged into this repo fixed the alerts Dependabot could bump on its own. The remaining ~54 open alerts (https://github.com/rubyatscale/visualize_packs/security/dependabot) are all nested build-tool dependencies pulled in transitively by react-scripts (webpack-dev-server, postcss, minimatch, js-yaml, svgo, etc.) — several levels deep in the tree, which Dependabot can't open a version-bump PR for directly.

This adds a resolutions block to d3_graph_generator/package.json forcing each flagged package to its patched version, and regenerates yarn.lock.

Two packages are deliberately not touched:

  • ajv: forcing it to a single version in either direction breaks the build — ajv-keywords@3.5.2 (used by several old webpack loaders) hard-requires ajv@^6.9.1, while newer schema-utils@4 requires ajv@^8.x. Leaving it alone turned out to be sufficient: refreshing the lockfile let the existing ^6.x/^8.x ranges naturally resolve to already-patched versions (6.15.0 / 8.20.0), so both ajv alerts are actually resolved by this PR too, just without an explicit override.
  • loader-utils: forcing it up to 3.x breaks babel-loader/@svgr/webpack/file-loader (they use loader-utils@2's getOptions API, removed in v3). Forced it down to 2.0.4 instead — the only direction that didn't break the build — which removes the vulnerable 3.x line from the tree entirely.

All of this is dev/build tooling only (react-scripts start/build/test) — none of it ships in the app's production bundle.

Test plan

  • yarn install completes cleanly
  • CI=true yarn build compiles successfully (verified locally; this repo's CI doesn't run a JS build step)
  • Confirm the corresponding Dependabot alerts auto-close after merge

… resolutions

react-scripts pins many nested build-tool dependencies (webpack-dev-server,
postcss, minimatch, js-yaml, etc.) that Dependabot can't bump on its own
since they're several levels deep in the tree. Adds a yarn `resolutions`
block forcing each flagged package to its patched version.

ajv and loader-utils are left alone: forcing either one flat in either
direction broke the build (ajv-keywords@3.5.2 hard-requires ajv@^6.9.1;
some loaders require loader-utils@2's getOptions API). ajv's two alerts
turned out to already be satisfied by the existing ^6.x/^8.x ranges once
the lockfile was refreshed - no override needed. loader-utils was forced
down to 2.0.4 across the board (the only direction that didn't break),
which removes the vulnerable 3.x range from the tree entirely.

Verified with a full `yarn install` + `CI=true yarn build` - the app
still compiles. No test suite exists for this package to run.
@dduugg
dduugg requested a review from a team as a code owner July 24, 2026 23:21
@github-project-automation github-project-automation Bot moved this to Triage in Modularity Jul 24, 2026
@dduugg dduugg closed this Jul 24, 2026
@github-project-automation github-project-automation Bot moved this from Triage to Done in Modularity Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant