Repository navigation
chore(frontend): clear the dev-only glob/minimatch advisories - #248
Merged
Merged
Conversation
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.
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.
Summary
npm auditinfrontend/reported 11 moderate advisories, all in dev-only packages (npm audit --omit=devwas already 0):>=7.0.0 <11.0.1(globparts amplification DoS), via@typescript-eslint/typescript-estree8.72.2 and viajs-beautify→editorconfig3.0.2 /glob13.0.7>=9.0.0 <=14.0.1(AbortSignal cancellation bypass), via@vue/test-utils→js-beautify→glob13.0.7After:
npm auditreports 0 vulnerabilities.What changed
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-utils2.5.1 → 2.6.0. Both stay within the existingpackage.jsonranges, so no range changed. That cleared 6 of the 11.A scoped
overridesentry for the other 5.js-beautify2.0.3 is the latest release, and@vue/test-utils2.6.0 still depends on it. It declaresglob ^13.0.6andeditorconfig ^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:This goes outside js-beautify's declared ranges (one major up for each). It is safe here because:
globandeditorconfigonly 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--editorconfigand a glob pattern against the overridden versions as a smoke test, and it worked.@vue/test-utilsbundles the beautifier code it uses into its owndist, so the tests never load these two packages.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-patchgroup still updates the direct dependencies as before. Dependabot does not updateoverridesentries, 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 CInpm audit --audit-level=highstep 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 cifrom the new lockfile: cleannpm run lint: passesnpm test: 31 files, 388 tests passednpm run build: passesnpm run gen:api: no diff insrc/api/v1/schema.ts