Skip to content

fix(deps): patch 2 HIGH advisories — sharp 0.35.x + brace-expansion 1.1.16#123

Merged
aaronjmars merged 1 commit into
mainfrom
fix/security-sharp-brace-expansion
Jul 23, 2026
Merged

fix(deps): patch 2 HIGH advisories — sharp 0.35.x + brace-expansion 1.1.16#123
aaronjmars merged 1 commit into
mainfrom
fix/security-sharp-brace-expansion

Conversation

@aaronjmars

Copy link
Copy Markdown
Collaborator

Resolves the two remaining HIGH open Dependabot advisories on this repo (the two other open PRs, #121 body-parser and #122 fast-uri, are already merged).

Changes (transitive-only, no direct dependency changed)

Package Before After Advisory
sharp 0.34.5 0.35.3 (overrides: ^0.35.0) GHSA-f88m-g3jw-g9cj — inherited libvips CVEs (2026-33327/33328/35590/35591), patched in 0.35.0
brace-expansion (top-level 1.x) 1.1.14 1.1.16 GHSA-3jxr-9vmj-r5cp — DoS via exponential expansion, patched in 1.1.16

Why an override for sharp

sharp is an optional dependency of next, pinned to ^0.34.5, so the fixed 0.35.0 is out of range and won't resolve without an overrides entry. Added "sharp": "^0.35.0" alongside the repo's existing overrides.

brace-expansion

Only the vulnerable top-level 1.x instance was bumped (via npm update). The two unrelated brace-expansion@5.0.x copies (under @ts-morph/common and @typescript-eslint/typescript-estree) are a different major, not in scope, and were left as-is (incidental 5.0.7→5.0.8 patch).

Verification

  • All Linux @img/sharp-* platform binaries (x64/arm64/musl — the CI & prod targets) confirmed present in the lockfile.
  • No direct dependency versions changed; diff is limited to package.json + package-lock.json.

…sion 1.1.14→1.1.16

- sharp: override to ^0.35.0 (GHSA-f88m-g3jw-g9cj — inherited libvips CVEs; next pins ^0.34.5, so a minor bump needs an override)
- brace-expansion: bump the vulnerable top-level 1.x instance to 1.1.16 (GHSA-3jxr-9vmj-r5cp — DoS via exponential expansion); unrelated 5.0.x copies untouched

Transitive-only; no direct dependency versions changed.
@aaronjmars
aaronjmars force-pushed the fix/security-sharp-brace-expansion branch from 6cbe8ad to ccf080b Compare July 23, 2026 22:16
@aaronjmars
aaronjmars merged commit 9e7a112 into main Jul 23, 2026
2 checks passed
@aaronjmars
aaronjmars deleted the fix/security-sharp-brace-expansion branch July 23, 2026 22:18
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