Skip to content

Remove the minimatch audit exception once vscode-languageclient moves to minimatch 11 #552

Open

Description

@JuroOravec

pnpm audit skips the minimatch advisory GHSA-g3hv-75wg-m249 through an auditConfig.ignoreGhsas entry in pnpm-workspace.yaml. Remove that entry once vscode-languageclient depends on minimatch 11.0.1 or newer, or once minimatch publishes a fixed 10.x release.

Why it is skipped

  • The advisory is a slowdown when minimatch prepares a crafted glob pattern with optimizationLevel 2 or higher. It affects every release before 11.0.1, so no 9.x or 10.x release has the fix.
  • The VS Code extension gets minimatch 10.2.6 through vscode-languageclient 10.1.2.
  • minimatch 11 removed Minimatch.prototype.makeRe(). vscode-languageclient calls it in lib/common/utils/globPattern.js and lib/common/fileOperations.js, so forcing minimatch 11 with an override would make those calls throw a TypeError.
  • vscode-languageclient never passes optimizationLevel, so the slow code cannot run through it. It also uses minimatch only for pull diagnostics, notebook documents, and file operations, and citry-lsp registers none of these features. VS Code matches the extension's own document patterns itself, without minimatch.
  • One entry by advisory ID silences every path to it, so it also hides the advisory in the dev-tooling report for @vscode/vsce (minimatch 10.2.6) and @lhci/cli (minimatch 3.1.5 through rimraf and glob). Neither sets optimizationLevel, and 3.1.5 has no such code.

vscode-languageclient 11.0.0 does not fix it

#550 bumps vscode-languageclient to 11.0.0. That release still depends on minimatch ^10.2.6 and calls makeRe(), so #550's lockfile keeps minimatch 10.2.6.

When to remove the entry

Remove it when a vscode-languageclient release depends on minimatch 11.0.1 or newer, or when minimatch publishes a fixed 10.x release. Then:

  1. Bump vscode-languageclient or minimatch, and rebuild packages/editors/vscode/out/.
  2. Delete the entry.
  3. Check that pnpm audit --prod passes without it.

Activity

  1. added
    next-sprint
    on Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    next-sprint

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions