Repository navigation
Fix the open Dependabot security alerts - #611
Merged
Merged
Conversation
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>
priethor
approved these changes
Nov 24, 2026
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>
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.
This fixes all 61 open Dependabot alerts. They are all in development dependencies, so nothing changes in the plugin itself.
markdownlint-cligoes from 0.39 to 0.49, the versionwp-scriptsalready uses. This removes old copies ofmarkdown-it,globandminimatch.@wordpress/env,markdownlint-cli,nyc, the webpack plugins). For those I addedoverrides:isomorphic-git,js-yaml5,katex,minimatch9 and 10,qs,serialize-javascript,smol-tomlanduuid8. Each override applies only to the vulnerable major version.squizlabs/php_codesniffer3.13.6 andphpunit/phpunit9.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:mdpasses,npm lsreports no problems, and no package in the lockfile matches an open alert. It also fixes the two moderatenpm auditadvisories that Dependabot does not report:@babel/runtime(pinned to 7.25.7 by@wordpress/icons10) andglob10 and 13 (used by Jest andrimraf, now on glob 14).npm auditreports no vulnerabilities.The lockfile is generated with npm 10, the version CI uses. npm 10 ignores version-selector overrides such as
glob@10whennpm cichecks the lockfile, so thegloboverrides 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