Repository navigation
fix(deps): glob 14 for js-beautify (GHSA-qxr8-q827-836c) - #841
Merged
Merged
Conversation
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>
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.
Closes Dependabot alert #42 (medium):
glob13.0.6 infrontend/pnpm-lock.yaml. In glob 13.0.5 to 14.0.5 theignorepatterns 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-beautify2.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 offersglobSyncin 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-scurry3.0.3,minimatch11.0.9). A newer local pnpm (12.25.1) rewrote everysupports-colorpeer 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
mainafter #840 found nothing. No open secret scanning alerts. This was the only open Dependabot alert.Testing
pnpm checkpasses (2373 tests).*.htmlpattern and formats both files.🤖 Generated with Claude Code