chore: pnpm security audit dependency upgrades (2026-07-24)#923
Draft
cursor[bot] wants to merge 1 commit into
Draft
chore: pnpm security audit dependency upgrades (2026-07-24)#923cursor[bot] wants to merge 1 commit into
cursor[bot] wants to merge 1 commit into
Conversation
- Upgrade next, @next/mdx, eslint-config-next to 16.2.11 - Upgrade eslint to 10.7.0 and eslint-plugin-mdx to ^3.8.1 - Upgrade sharp to ^0.35.3 Co-authored-by: Arnau Gómez Farell <arnaugomez@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
Scheduled
pnpm auditrun on latestmain. Found 16 vulnerabilities (11 high, 5 moderate).pnpm audit fixdid not resolve any issues.Upgraded direct dependencies to fix 10 vulnerabilities. 6 remain and require
pnpm.overrides(not applied per policy).Verified with
pnpm run build:next(passes). Lockfile is up to date (pnpm install --frozen-lockfile).Vulnerability fixes
nextnext,@next/mdx,eslint-config-nextfrom 16.2.9 → 16.2.11nextnextnextnextnextnextnextnextsharp(direct)sharpdependency from ^0.33.4 → ^0.35.3brace-expansioneslint-plugin-mdx→eslint-mdx→unified-engine→glob→minimatch→brace-expansion@2.1.0brace-expansioneslint-config-next→eslint-plugin-jsx-a11y→minimatch→brace-expansion@1.1.13brace-expansioneslint→minimatch→brace-expansion@5.0.6(needs ≥5.0.7)linkify-it@tiptap/extension-focus→@tiptap/pm→prosemirror-markdown→markdown-it→linkify-it@5.0.1svgo@svgr/webpack→@svgr/plugin-svgo→svgo@3.3.3(already at latest@svgr/webpack@8.1.0)sharp(via next)next@16.2.11→sharp@0.34.5(direct dep upgraded to 0.35.3 but Next bundles its own copy)Unfixed vulnerabilities (require overrides or upstream updates)
brace-expansion(3 instances)Why not fixed: No parent dependency publishes a version that pulls patched
brace-expansionacross all three version lines (1.x, 2.x, 5.x). Upgradingeslintto 10.7.0 andeslint-plugin-mdxto 3.8.1 reduced but did not eliminate all instances.How to fix: Add
pnpm.overrides:Alternatively, wait for upstream releases from
eslint-plugin-jsx-a11y,eslint-mdx/unified-engine, andeslint/minimatch.linkify-itWhy not fixed: Vulnerability is deep in
@tiptap/pm→prosemirror-markdown→markdown-it→linkify-it. Upgrading@tiptap/extension-focuswithin v2 does not change this chain.How to fix: Add override
"linkify-it": "5.0.2", or upgrade to Tiptap v3 when feasible (may require code changes).svgoWhy not fixed:
@svgr/webpack@8.1.0(latest stable) pins@svgr/plugin-svgowhich depends onsvgo@3.3.3(<3.3.4).How to fix: Add override
"svgo": "3.3.4", or wait for@svgr/webpackto release with updatedsvgo.sharp(vianext)Why not fixed: Next.js 16.2.11 bundles
sharp@0.34.5as an optional dependency. Directsharpwas upgraded to 0.35.3 but does not affect Next's nested copy.How to fix: Add override
"sharp": "$sharp"to force all consumers to use the project'ssharp@^0.35.3, or wait for a Next.js release that bumps its bundledsharp.Overrides review
postcss: $postcss— Still required. Without it,next@16.2.11resolvespostcss@8.4.31(vulnerable). The override forces the project'spostcss@^8.5.15devDependency. Tested removal: reintroduces 2 moderate PostCSS advisories.Verification
pnpm install --frozen-lockfile— lockfile up to datepnpm run build:next— passes on Next.js 16.2.11pnpm dlx --config.minimumReleaseAge=0 pnpm@11.0.0 --config.manage-package-manager-versions=false audit— 6 high vulnerabilities remain (down from 16)