Skip to content

Clear in-range npm audit findings - #26

Merged
glindsay65 merged 1 commit into
developfrom
cursor/npm-audit-remaining-111e
Nov 12, 2026
Merged

glindsay65 merged 1 commit into
developfrom
cursor/npm-audit-remaining-111e

Conversation

@glindsay65

Copy link
Copy Markdown
Contributor

[Susan (Grok Bot)]

Clears every npm audit finding that has a patched release inside the parent’s declared range. next and eslint-config-next stay pinned at 16.4.6. prisma, @prisma/client, and @prisma/adapter-pg stay at ^7.10.1. The app version stays 1.2.0. engines.node is unchanged.

No npm audit fix and no --force. No suggested downgrade was accepted.

Audit

Severity Before After
Critical 0 0
High 11 1
Moderate 12 8
Low 2 0
Total 25 9

Fixes

Package Old New How
@babel/core 7.29.0 7.29.13 in-range update
baseline-browser-mapping 2.10.31 2.11.36 in-range update (via browserslist)
body-parser 2.2.2 2.4.0 in-range update
brace-expansion 1.1.14 and 5.0.6 1.1.22 and 5.0.13 in-range update (both copies)
browserslist 4.28.2 4.29.5 in-range update
esbuild 0.28.0 0.28.2 in-range update
js-yaml 4.1.1 4.3.2 in-range update (4.x; 5.x is outside @eslint/eslintrc’s ^4.1.1)
qs 6.15.2 6.17.1 in-range update (via body-parser 2.4.0)
source-map-js 1.2.1 1.2.2 in-range update
undici 7.27.1 7.30.2 in-range update (7.x; jsdom wants ^7.25.0)
zod 4.4.3 4.6.7 in-range update
@apollo/server 5.5.1 5.5.2 in-range update
@graphql-tools/merge 9.1.9 9.2.4 in-range update
@graphql-tools/schema 10.0.33 10.1.1 in-range update
@graphql-tools/utils 11.1.0 12.0.1 in-range update (clears the mergeDeep advisory; one advisory remains)
vite 8.0.16 8.3.8 devDependency bump to ^8.3.8
vitest 4.1.8 4.1.12 devDependency bump to ^4.1.12
@vitest/mocker 4.1.8 4.1.12 pulled by the vitest bump

vite was transitive. npm update vite crashes 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.0 range 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.12 hit the same npm 10 arborist crash and was applied with npm 11.21.2. The lockfile stays lockfileVersion 3, and npm ci on npm 10 succeeds.

Vite 8.3 prints a warning that vitest.config.ts uses 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/utils 12.0.1 (1 high). GHSA-c4qx-w738-7hr3 (mergeIncrementalResult prototype 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/utils as >=12.0.0 <12.0.2, @graphql-tools/schema as ^10.0.0 <10.1.2, and @graphql-tools/merge as ^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/server release that allows @graphql-tools/utils >=12.0.2. npm audit fix does 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 on minimatch@^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 stable typescript-eslint is 8.72.2, which is still inside the advisory range <=8.72.2 and still depends on minimatch@^10.2.2. eslint-config-next@16.4.6 allows typescript-eslint@^8.56.0, so 8.72.2 is in range and still does not clear the finding. The only fix npm offers is downgrading eslint-config-next to 15.5.29. That downgrade was not taken, and eslint-config-next stays at 16.4.6. No override was added, because minimatch 11 is not compatible with the parent’s range. Follow-up: a typescript-eslint release above 8.72.2 that depends on minimatch >=11.0.1.

Verification

  • npm ci clean
  • npm run lint exit 0
  • npm run test:run: 9 files, 68 tests passed
  • npx tsc --noEmit clean
Open in Web Open in Cursor 

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>
@vercel

vercel Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
website Ready Ready Preview Nov 12, 2026 8:25pm UTC

Request Review

@glindsay65
glindsay65 merged commit 9c17715 into develop Nov 12, 2026
4 checks passed
@glindsay65
glindsay65 deleted the cursor/npm-audit-remaining-111e branch November 12, 2026 20:41

This branch was successfully deployed

1 active deployment
Preview — 75cb07be Deployed Nov 12, 2026 by vercel[bot]
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.

2 participants