Skip to content

fix(deps): resolve pnpm audit vulnerabilities (2026-07-22)#915

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/pnpm-security-audit-d1ea
Draft

fix(deps): resolve pnpm audit vulnerabilities (2026-07-22)#915
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/pnpm-security-audit-d1ea

Conversation

@cursor

@cursor cursor Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Summary

Scheduled pnpm audit found 7 high-severity vulnerabilities. pnpm audit fix did not resolve any of them. This PR upgrades direct dependencies and refreshes the lockfile to pull in patched transitive packages.

Verification: pnpm install --frozen-lockfile passes, pnpm run build:next passes.

Overrides: The existing postcss: "$postcss" override remains necessary (removing it exposes GHSA-qx2v-qp2m-jg93 via next>postcss@8.4.31). No overrides were added.

Vulnerability fixes

Advisory Package Severity Path Fix applied
GHSA-3jxr-9vmj-r5cp brace-expansion High eslint>minimatch>brace-expansion Upgraded eslint 10.2.1 → 10.7.0; lockfile refresh updated brace-expansion 5.0.6 → 5.0.7
GHSA-3jxr-9vmj-r5cp brace-expansion High eslint-config-next>eslint-plugin-jsx-a11y>minimatch>brace-expansion Upgraded eslint-config-next 16.2.9 → 16.2.11; lockfile refresh updated brace-expansion 1.1.13 → 1.1.16
GHSA-3jxr-9vmj-r5cp brace-expansion High eslint-plugin-mdx>eslint-mdx>unified-engine>glob>minimatch>brace-expansion Upgraded eslint-plugin-mdx ^3.7.0 → ^3.8.1; lockfile refresh updated brace-expansion 2.1.0 → 2.1.2
GHSA-v245-v573-v5vm linkify-it High @tiptap/extension-focus>@tiptap/pm>prosemirror-markdown>markdown-it>linkify-it Lockfile refresh updated linkify-it 5.0.1 → 5.0.2 (semver range ^5.0.1 already allowed the patch; @tiptap/extension-focus already at latest 2.27.2)
GHSA-2p49-hgcm-8545 svgo High @svgr/webpack>@svgr/plugin-svgo>svgo Lockfile refresh updated svgo 3.3.3 → 3.3.4 (@svgr/webpack already at latest 8.1.0; svgo range ^3.0.2 allows the patch)
GHSA-f88m-g3jw-g9cj sharp High Direct dependency Upgraded sharp ^0.33.4 → ^0.35.3 (0.35.3 installed)
GHSA-f88m-g3jw-g9cj sharp High next>sharp (optional) Not fixed — see below

Package upgrades

  • next / @next/mdx: ^16.2.9 → ^16.2.11
  • sharp: ^0.33.4 → ^0.35.3
  • eslint: 10.2.1 → 10.7.0
  • eslint-config-next: 16.2.9 → 16.2.11
  • eslint-plugin-mdx: ^3.7.0 → ^3.8.1

Unfixed vulnerabilities

sharp via Next.js optional dependency (GHSA-f88m-g3jw-g9cj)

Why not fixed: Next.js 16.2.11 (latest stable) declares sharp as an optional dependency at ^0.34.5, which resolves to 0.34.5 — below the patched >=0.35.0 threshold. There is no parent dependency upgrade that forces Next to use sharp@0.35.x.

How it could be fixed: Add a pnpm override to align Next's optional sharp with the direct dependency, e.g. "sharp": "$sharp" in pnpm.overrides (the project already uses $postcss for a similar purpose). Alternatively, wait for a Next.js release that bumps its optional sharp range to >=0.35.0.

Risk note: This is an optional dependency used for image optimization in production builds. The direct sharp dependency is already patched.

postcss via Next.js (GHSA-qx2v-qp2m-jg93) — mitigated by existing override

Status: Not a new finding; mitigated by the existing postcss: "$postcss" override. Next 16.2.11 still pins postcss@8.4.31 in its dependencies. The override cannot be removed until Next bundles postcss>=8.5.10.

How it could be fixed without override: Wait for a Next.js release that updates its bundled PostCSS version.

Open in Web View Automation 

Upgrade next, eslint, sharp, and related dev dependencies to pull in
patched transitive packages (brace-expansion, linkify-it, svgo).
Refresh lockfile for minimatch/brace-expansion resolution.

Postcss override remains required (Next pins postcss 8.4.31).
Sharp via next optional dependency still requires override to fix.

Co-authored-by: Arnau Gómez Farell <arnaugomez@users.noreply.github.com>
@vercel

vercel Bot commented Jul 22, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
tiptap-docs Ready Ready Preview, Comment Jul 22, 2026 7:09am

Request Review

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