Skip to content

fix(deps): glob 14 for js-beautify (GHSA-qxr8-q827-836c) - #841

Merged
joszz merged 1 commit into
mainfrom
fix/glob-advisory
Dec 1, 2026
Merged

joszz merged 1 commit into
mainfrom
fix/glob-advisory

Conversation

@joszz

@joszz joszz commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Closes Dependabot alert #42 (medium): glob 13.0.6 in frontend/pnpm-lock.yaml. In glob 13.0.5 to 14.0.5 the ignore patterns lack the brace-expansion limit (braceExpandMax) the main patterns have, GHSA-qxr8-q827-836c. Fixed in 14.0.6; no glob 13 release has the fix.

Where it comes from

@vue/test-utils > js-beautify 2.0.3 > glob ^13.0.6. Development only: nothing of it ships in the app. js-beautify 2.0.3 is its latest release, so no update brings glob 14.

Change

A pnpm override in frontend/pnpm-workspace.yaml, next to the existing one for workbox: 'js-beautify>glob': '^14.0.7', with a comment on why and when to drop it. Only js-beautify's glob moves; the other glob in the tree (11.1.0, outside the affected range) stays.

js-beautify only uses glob in its command-line tool (const { globSync } = require('glob')); glob 14 still offers globSync in its CommonJS build. The tests use js-beautify's HTML formatter through @vue/test-utils, which does not glob at all.

The lock file was written with the pinned pnpm 12.21.0, so it only changes glob and its two dependencies (path-scurry 3.0.3, minimatch 11.0.9). A newer local pnpm (12.25.1) rewrote every supports-color peer entry, which is left out.

Code scanning

No open code scanning alerts: CodeQL (C#, TypeScript, workflows), the Trivy file scan and all eight image scans of main after #840 found nothing. No open secret scanning alerts. This was the only open Dependabot alert.

Testing

  • pnpm check passes (2373 tests).
  • js-beautify's command-line tool on glob 14 still expands a *.html pattern and formats both files.

🤖 Generated with Claude Code

js-beautify 2.0.3, which @vue/test-utils pulls in for the tests, asks for
glob 13, and every glob 13 has ignore patterns without the brace-expansion
limit its patterns have. The fix is only in glob 14.0.6, and js-beautify
has no release asking for it, so an override moves js-beautify alone to
glob 14.0.7. js-beautify only globs in its command-line tool, through
globSync, which glob 14 still offers in its CommonJS build. The other
glob in the tree (11.1.0) is not affected and stays.

Locked with the pinned pnpm 12.21.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@joszz
joszz enabled auto-merge December 1, 2026 11:54
@joszz
joszz merged commit 1ed1885 into main Dec 1, 2026
28 checks passed
@joszz
joszz deleted the fix/glob-advisory branch December 1, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant