Skip to content

Fix the open Dependabot security alerts - #611

Merged
cbravobernal merged 4 commits into
trunkfrom
fix/dependabot-security-alerts
Nov 24, 2026
Merged

cbravobernal merged 4 commits into
trunkfrom
fix/dependabot-security-alerts

Conversation

@cbravobernal

@cbravobernal cbravobernal commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

This fixes all 61 open Dependabot alerts. They are all in development dependencies, so nothing changes in the plugin itself.

  • Most npm alerts go away after refreshing the lockfile within the current version ranges.
  • markdownlint-cli goes from 0.39 to 0.49, the version wp-scripts already uses. This removes old copies of markdown-it, glob and minimatch.
  • Some packages are pinned to vulnerable versions by other dependencies (@wordpress/env, markdownlint-cli, nyc, the webpack plugins). For those I added overrides: isomorphic-git, js-yaml 5, katex, minimatch 9 and 10, qs, serialize-javascript, smol-toml and uuid 8. Each override applies only to the vulnerable major version.
  • Composer: squizlabs/php_codesniffer 3.13.6 and phpunit/phpunit 9.6.39.

The newer markdownlint adds rules. I aligned the table in the first custom field tutorial. I also allowed "Link" as link text, because in the field type lists it is the name of the Link field.

Checked locally: JS unit tests pass (also with coverage), the build works, npm run lint:md passes, npm ls reports no problems, and no package in the lockfile matches an open alert. It also fixes the two moderate npm audit advisories that Dependabot does not report: @babel/runtime (pinned to 7.25.7 by @wordpress/icons 10) and glob 10 and 13 (used by Jest and rimraf, now on glob 14). npm audit reports no vulnerabilities.

The lockfile is generated with npm 10, the version CI uses. npm 10 ignores version-selector overrides such as glob@10 when npm ci checks the lockfile, so the glob overrides are scoped to their parent packages.

Follow up to #610

Use of AI Tools

Claude Code (Claude Opus 5.5) found which packages were still vulnerable, chose the overrides, updated the lockfiles and wrote this description. It still needs a human review.

🤖 Generated with Claude Code

cbravobernal and others added 3 commits November 24, 2026 13:36
All alerts are in development dependencies.

Refresh the npm lockfile within the current ranges, which fixes most of
them. Update markdownlint-cli to 0.49 (the version wp-scripts uses), so
the old markdown-it, glob and minimatch copies go away. Add overrides
for the packages that other dependencies pin to vulnerable versions:
isomorphic-git, js-yaml 5, katex, minimatch 9 and 10, qs,
serialize-javascript, smol-toml and uuid 8.

markdownlint 0.41 adds new rules. Align the table in the first custom
field tutorial, and allow "Link" as link text, because it is the name
of a field type.

Update squizlabs/php_codesniffer to 3.13.6 and phpunit/phpunit to
9.6.39.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CI installs with npm 10, which rejected the lockfile made with npm 11
and did not apply the minimatch 9 override under rimraf. Add a scoped
override for rimraf 5 and regenerate the lockfile with npm 10.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Override @babel/runtime to 7.26.10 or later (@wordpress/icons 10 pins
7.25.7), and move the glob 10 and 13 copies used by Jest and rimraf to
glob 14. The glob overrides are scoped to their parent packages,
because npm 10 ignores version-selector overrides when it checks the
lockfile in npm ci.

npm audit now reports no vulnerabilities.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Since @wordpress/e2e-test-utils-playwright 3.2, admin.createNewPost()
calls editor.canvas.locator() directly. The editor fixture returned a
Promise from canvas, so every test that creates a post failed with
"this.editor.canvas.locator is not a function".

Check once per worker whether the site runs WordPress 6.2, and return
the page or the editor iframe synchronously.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cbravobernal
cbravobernal merged commit 8d062e3 into trunk Nov 24, 2026
20 checks passed
@cbravobernal
cbravobernal deleted the fix/dependabot-security-alerts branch November 24, 2026 14:47
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.

2 participants