Skip to content

fix(deps): patch sharp and postcss-selector-parser advisories - #385

Merged
AdamXweb merged 1 commit into
mainfrom
fix/dependabot-sharp-postcss-selector-parser
Oct 6, 2026
Merged

AdamXweb merged 1 commit into
mainfrom
fix/dependabot-sharp-postcss-selector-parser

Conversation

@adamXbot

@adamXbot adamXbot commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

Fixes the two open Dependabot alerts.

Alert Package Advisory Severity Change Reaches
44 sharp GHSA-wq5f-xc86-pv6w (librsvg in the bundled libvips, CVE-2026-96889) high 0.35.4 → 0.35.5 Next.js; runtime only in the Docker image's Node rollback
42 postcss-selector-parser GHSA-rj75-hqrm-r3gf (quadratic flat-selector parsing) medium 7.1.4 → 7.1.6 Storybook's css-loader; dev only

Change

Both packages come in indirectly, so the fix goes in pnpm-workspace.yaml overrides, the same way earlier advisory fixes (source-map-js, nanoid) were done:

  • sharp: the existing override's floor moves ^0.35.0 → ^0.35.5. Next 16.3.6 declares ^0.35.4, which kept the lockfile on 0.35.4. Its comment now says when to drop it.
  • postcss-selector-parser@7: a new floor of ^7.1.6, scoped to the v7 line, in the build-tooling security floors section.

The lockfile changes only sharp, its @img/* platform packages (bundled libvips 1.3.3 → 1.3.4), and postcss-selector-parser. package.json is unchanged.

Verification

  • sharp 0.35.5, resolved from Next's own location, loads and renders an SVG (libvips 8.18.7, librsvg 2.63.2).
  • pnpm build and pnpm build-storybook pass.
  • pnpm install --frozen-lockfile passes.
  • pnpm audit --prod reports no known vulnerabilities.

Not fixed here

pnpm audit (dev) still reports two Storybook-only findings:

  • elliptic (GHSA-848j-6mx2-7j84) is already tracked in docs/DEPENDENCY-SECURITY.md.
  • braces (GHSA-vfj7-8cjw-p6xm, through Storybook's micromatch) names 3.0.4 as the fix, but no such release exists; 3.0.3 is the newest on npm. Dependabot has not raised it yet.

🤖 Generated with Claude Code

Dependabot alerts 44 and 42.

- sharp 0.35.4 -> 0.35.5 for GHSA-wq5f-xc86-pv6w (high: the librsvg
  bundled with sharp's libvips, CVE-2026-96889). Next 16.3.6 declares
  ^0.35.4, so raise the existing override's floor from ^0.35.0. The
  libvips platform packages move 1.3.3 -> 1.3.4 with it. Reaches runtime
  only in the Docker image's Node rollback; the Rust image and the
  desktop app ship no node_modules.
- postcss-selector-parser 7.1.4 -> 7.1.6 for GHSA-rj75-hqrm-r3gf
  (medium: quadratic flat-selector parsing). Dev only, through
  Storybook's css-loader; added as a v7-scoped floor beside the other
  build-tooling patch floors.

The lockfile changes only these packages. sharp 0.35.5 loads and renders
SVG (libvips 8.18.7, librsvg 2.63.2); pnpm build and pnpm build-storybook
pass; pnpm audit --prod is clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@adamXbot
adamXbot requested a review from AdamXweb as a code owner October 6, 2026 13:57
@AdamXweb
AdamXweb merged commit 649a5da into main Oct 6, 2026
15 checks passed
@AdamXweb
AdamXweb deleted the fix/dependabot-sharp-postcss-selector-parser branch October 6, 2026 14:01
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