Skip to content

chore(deps): resolve all open Dependabot alerts - #62

Merged
kraftbj merged 1 commit into
masterfrom
fix/dependabot-alerts
Jul 21, 2026
Merged

chore(deps): resolve all open Dependabot alerts#62
kraftbj merged 1 commit into
masterfrom
fix/dependabot-alerts

Conversation

@kraftbj

@kraftbj kraftbj commented Jul 21, 2026

Copy link
Copy Markdown
Owner

Clears all 17 open Dependabot alerts, every one of which is in dev/build-time tooling (package-lock.json only) — none reach the shipped plugin (PHP + built block assets).

What changed

  • @wordpress/scripts 31.6.0 → 33.0.0 (latest) and grunt-contrib-cssmin 0.12.3 → 5.0.0.
  • Added an overrides block pinning patched versions of transitive build deps. This is needed because even the latest @wordpress/scripts still declares older ranges for its bundled linters/dev-server (e.g. webpack-dev-server ^4.15.1, adm-zip ^0.5.9, markdownlint-cli ^0.31.1), so the alerts can only be cleared by forcing the fixed versions.

Overrides are scoped where a package spans multiple major lines so safe consumers aren't dragged down:

  • js-yaml → 3.15.0 only under grunt (eslint's 4.3.0 is already patched).
  • minimatch → 3.1.5 only under markdownlint-cli / jshint / globule (9.x and 10.x elsewhere are unaffected).

Alerts resolved

adm-zip, body-parser, brace-expansion (1.x + 2.x), http-proxy-middleware, shell-quote, js-yaml (3.x + 4.x), webpack-dev-server, markdown-it, linkify-it, @babel/core, @opentelemetry/core, plus the uuid/sockjs chain under webpack-dev-server.

Verification

  • npm audit0 vulnerabilities
  • npm run build:blocks → compiles successfully
  • grunt default (jshint, cssmin, wp_readme_to_markdown, makepot) → passes

Note: all findings are DoS/ReDoS/prototype-pollution classes in build tooling that operate on trusted local inputs, so there was no runtime exposure in the distributed plugin — this just clears the alerts and keeps the toolchain current.

Bump @wordpress/scripts 31.6.0 -> 33.0.0 and grunt-contrib-cssmin
0.12.3 -> 5.0.0, and add an overrides block pinning patched versions of
the transitive build-time dependencies flagged by Dependabot.

All 17 open alerts are in dev/build tooling (package-lock.json only);
none reach the shipped plugin. Verified `npm run build:blocks` and the
grunt default task (jshint, cssmin, wp_readme_to_markdown, makepot) both
still succeed, and `npm audit` reports 0 vulnerabilities.
@kraftbj
kraftbj merged commit ff9e925 into master Jul 21, 2026
7 checks passed
@kraftbj
kraftbj deleted the fix/dependabot-alerts branch July 21, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant