Skip to content

chore(frontend): clear the dev-only glob/minimatch advisories - #248

Merged
tunjayoff merged 1 commit into
mainfrom
chore/frontend-dev-advisories
Nov 21, 2026
Merged

tunjayoff merged 1 commit into
mainfrom
chore/frontend-dev-advisories

Conversation

@tunjayoff

Copy link
Copy Markdown
Owner

Summary

npm audit in frontend/ reported 11 moderate advisories, all in dev-only packages (npm audit --omit=dev was already 0):

  • GHSA-g3hv-75wg-m249: minimatch >=7.0.0 <11.0.1 (globparts amplification DoS), via @typescript-eslint/typescript-estree 8.72.2 and via js-beautify → editorconfig 3.0.2 / glob 13.0.7
  • GHSA-3g3m-2fjr-6pw4: glob >=9.0.0 <=14.0.1 (AbortSignal cancellation bypass), via @vue/test-utils → js-beautify → glob 13.0.7

After: npm audit reports 0 vulnerabilities.

What changed

  1. npm audit fix (no --force), lockfile only. typescript-eslint 8.72.2 → 8.73.0 (it now depends on minimatch ^11.0.1) and @vue/test-utils 2.5.1 → 2.6.0. Both stay within the existing package.json ranges, so no range changed. That cleared 6 of the 11.

  2. A scoped overrides entry for the other 5. js-beautify 2.0.3 is the latest release, and @vue/test-utils 2.6.0 still depends on it. It declares glob ^13.0.6 and editorconfig ^3.0.2, and neither line has a patched release: glob 13.0.7 is inside the glob advisory and pins minimatch ^10.2.2, and the editorconfig 3.x line pins minimatch 10. So:

    "overrides": { "js-beautify": { "glob": "^14.0.2", "editorconfig": "^4.0.1" } }

    This goes outside js-beautify's declared ranges (one major up for each). It is safe here because:

    • js-beautify uses glob and editorconfig only in its CLI (js/src/cli.js: globSync, glob.hasMagic, editorconfig.parseSync), and those APIs are unchanged in glob 14 and editorconfig 4. I ran the CLI with --editorconfig and a glob pattern against the overridden versions as a smoke test, and it worked.
    • @vue/test-utils bundles the beautifier code it uses into its own dist, so the tests never load these two packages.
    • editorconfig 4 requires Node >= 22. CI (ci.yml, audit.yml, latest-deps.yml) and the Dockerfile (node:22-bookworm-slim) already use 22.

    The override applies only under js-beautify. Nothing else in the tree changes.

No runtime (non-dev) dependency changed. All changed lockfile entries are dev: true. There is no CHANGELOG entry because no direct dependency's declared version changed.

Dependabot

The frontend-minor-patch group still updates the direct dependencies as before. Dependabot does not update overrides entries, so this one needs manual cleanup: remove it once js-beautify (or @vue/test-utils) ships with glob >= 14.0.2 and editorconfig >= 4. The CI npm audit --audit-level=high step would not have failed on these moderate advisories, so this PR is cleanup, not a CI fix.

Checks

  • npm audit: 0 (before: 11 moderate). npm audit --omit=dev: 0. npm audit --audit-level=high: 0.
  • npm ci from the new lockfile: clean
  • npm run lint: passes
  • npm test: 31 files, 388 tests passed
  • npm run build: passes
  • npm run gen:api: no diff in src/api/v1/schema.ts

npm audit fix (lockfile only) moves typescript-eslint to 8.73.0 and
@vue/test-utils to 2.6.0; typescript-eslint 8.73 depends on minimatch ^11.0.1.
js-beautify 2.0.3 (latest, under @vue/test-utils) still asks for glob ^13 and
editorconfig ^3, which have no patched release in those majors, so an
override scoped to js-beautify lifts them to glob ^14.0.2 and editorconfig
^4.0.1.
@tunjayoff
tunjayoff merged commit e9c8fec into main Nov 21, 2026
11 checks passed
@tunjayoff
tunjayoff deleted the chore/frontend-dev-advisories branch November 21, 2026 07:33
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.

1 participant