Repository navigation
Clear in-range npm audit findings - #26
Merged
Merged
Conversation
Refresh transitive packages to patched releases inside their parents' ranges, and bump vite and vitest so those advisories clear without a major upgrade. Co-authored-by: Grant Lindsay <glindsay65@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
[Susan (Grok Bot)]
Clears every
npm auditfinding that has a patched release inside the parent’s declared range.nextandeslint-config-nextstay pinned at 16.4.6.prisma,@prisma/client, and@prisma/adapter-pgstay at ^7.10.1. The app version stays 1.2.0.engines.nodeis unchanged.No
npm audit fixand no--force. No suggested downgrade was accepted.Audit
Fixes
@babel/corebaseline-browser-mappingbody-parserbrace-expansionbrowserslistesbuildjs-yaml@eslint/eslintrc’s^4.1.1)qssource-map-jsundici^7.25.0)zod@apollo/server@graphql-tools/merge@graphql-tools/schema@graphql-tools/utilsmergeDeepadvisory; one advisory remains)vite^8.3.8vitest^4.1.12@vitest/mockervitewas transitive.npm update vitecrashes in npm 10.9.9 (Cannot read properties of null (reading 'edgesOut')), and installing it without saving does not rewrite the lockfile. It is now a direct devDependency at^8.3.8, which is inside the existing^8.0.0range from vitest and@vitejs/plugin-react. Vitest 4.1.12 is the latest 4.x and closes both vitest advisories, so the vitest 5 major was not required.npm install vitest@4.1.12hit the same npm 10 arborist crash and was applied with npm 11.21.2. The lockfile stayslockfileVersion3, andnpm cion npm 10 succeeds.Vite 8.3 prints a warning that
vitest.config.tsuses ESM syntax while loaded as CommonJS, and that native config loading may reject that in a future major. Tests pass (68/68). No config change.Left unfixed
@graphql-tools/utils12.0.1 (1 high). GHSA-c4qx-w738-7hr3 (mergeIncrementalResultprototype pollution) covers>=10.10.1 <=12.0.1. The patched release is 12.0.2.@apollo/server@5.5.2(latest matching^5.5.1, published after 12.0.2) still declares@graphql-tools/utilsas>=12.0.0 <12.0.2,@graphql-tools/schemaas^10.0.0 <10.1.2, and@graphql-tools/mergeas^9.1.1 <9.2.5. Schema 10.1.1 / merge 9.2.4 are the newest versions inside those caps, and they resolve utils to 12.0.1. An override to 12.0.2 would sit outside the parent’s declared range. Follow-up: an@apollo/serverrelease that allows@graphql-tools/utils>=12.0.2.npm audit fixdoes not move this package; a dry run still reports it.typescript-eslint / minimatch / eslint-config-next (8 moderate). One minimatch advisory (GHSA-g3hv-75wg-m249,
>=7.0.0 <11.0.1) is pulled in by@typescript-eslint/typescript-estree, which depends onminimatch@^10.2.2. The installed copy is minimatch 10.2.5 (latest 10.2.6 is still inside the vulnerable range). The patched minimatch is 11.0.1+, which is outside^10.2.2. Latest stabletypescript-eslintis 8.72.2, which is still inside the advisory range<=8.72.2and still depends onminimatch@^10.2.2.eslint-config-next@16.4.6allowstypescript-eslint@^8.56.0, so 8.72.2 is in range and still does not clear the finding. The only fix npm offers is downgradingeslint-config-nextto 15.5.29. That downgrade was not taken, andeslint-config-nextstays at 16.4.6. No override was added, because minimatch 11 is not compatible with the parent’s range. Follow-up: atypescript-eslintrelease above 8.72.2 that depends on minimatch>=11.0.1.Verification
npm cicleannpm run lintexit 0npm run test:run: 9 files, 68 tests passednpx tsc --noEmitclean