Skip to content

Clear all 4 npm audit findings for SUP-4013 - #39

Merged
KidkArolis merged 1 commit into
masterfrom
update-all-clear-soon-vulnerabilities-sup-4013
Sep 15, 2026
Merged

KidkArolis merged 1 commit into
masterfrom
update-all-clear-soon-vulnerabilities-sup-4013

Conversation

@matt-humaan

Copy link
Copy Markdown
Contributor

Clears every npm audit finding in this repo, for SUP-4013.

The findings

Package Severity Advisory
next 16.3.1 critical GHSA-p293-qw3h-jr36, GHSA-2xp9-vwfh-vxw4
js-yaml 3.15.1 high GHSA-2883-xcg3-v3hh
sharp 0.35.3 high GHSA-rgj7-g3m4-5g8c
qs 6.15.3 moderate GHSA-x5fp-wj9c-mxmx, GHSA-4mjr-xmp4-gh2g

Worth calling out that the second next advisory is unauthenticated RCE in the Image Optimization API when AVIF files are used — squarely this package's territory, since next-img drives that API and emits AVIF derivatives.

The js-yaml one is dev-only, reaching us transitively as ava@8.0.1 → supertap → js-yaml@^3.14.1. Same finding and same fix as humaans/react-space-router#13.

The fix

All four are patched inside their existing ranges, so a plain npm update next js-yaml qs sharp resolves them. No overrides, and no package.json changes — the diff is package-lock.json only.

The 341 lines are 40 packages, and every one is a target or a platform-specific sibling of a target: the @img/sharp-* and @next/swc-* binary sets, @img/sharp-libvips-* 1.3.2 → 1.3.3, @next/env, and one added @emnapi/runtime under sharp-wasm32. Nothing unrelated moved.

npm audit now reports 0 vulnerabilities.

Verification

Left to CI. Locally, before handing over: fresh npm ci then npm test (oxlint + tsc + ava) gave 49 passed, matching the baseline taken before the change, and npm run test:integration was green on 16.3.5 for both the turbopack and webpack next build runs.

Not run locally: the React 18/19 matrix. CI covers it here.

Note for anyone updating deps here

Per the same note on humaans/react-space-router#13 — this lockfile is npm 11-generated and carries 54 libc fields on the optional platform packages. npm 10 does not understand that field and silently strips it, bloating the diff. This commit was made with npm 11.11.0 and all 54 survive.

npm ci is unaffected, so CI on node 22 is fine either way.

🤖 Generated with Claude Code

All four are patched inside their existing ranges, so a plain
`npm update next js-yaml qs sharp` resolves them. No `overrides` and no
package.json changes.

- next 16.3.1 -> 16.3.5 (critical) GHSA-p293-qw3h-jr36 unauthenticated RCE
  on windows-hosted servers, and GHSA-2xp9-vwfh-vxw4 unauthenticated RCE in
  the Image Optimization API when AVIF files are used. The second one is
  squarely this package's territory -- next-img drives that API and emits
  AVIF derivatives.
- js-yaml 3.15.1 -> 3.15.2 (high) GHSA-2883-xcg3-v3hh. Dev-only, transitive
  via ava -> supertap -> js-yaml@^3.14.1. Same finding and same fix as
  humaans/react-space-router#13.
- sharp 0.35.3 -> 0.35.4 (high) GHSA-rgj7-g3m4-5g8c, libheif vulnerabilities,
  which also moves @img/sharp-libvips-* 1.3.2 -> 1.3.3.
- qs 6.15.3 -> 6.16.0 (moderate) GHSA-x5fp-wj9c-mxmx array-limit bypass and
  GHSA-4mjr-xmp4-gh2g DoS via attacker-controlled isBuffer.

The 341-line lockfile diff is 40 packages, and every one is a target or a
platform-specific sibling of a target: the @img/sharp-* and @next/swc-*
binary sets, @next/env, and one added @emnapi/runtime under sharp-wasm32.
Nothing unrelated moved.

Made with npm 11.11.0. This lockfile is npm 11-generated -- it carries 54
`libc` fields that npm 10 does not understand and silently strips, which
would bloat the diff. All 54 survive here. `npm ci` is unaffected either
way, so CI on node 22 is fine regardless.

Verified: npm audit 4 -> 0; fresh `npm ci` then `npm test` (oxlint + tsc +
ava) 49 passed, matching the baseline taken before the change; and
`npm run test:integration`, both the turbopack and webpack `next build`
runs, green on 16.3.5.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@linear-code

linear-code Bot commented Sep 14, 2026

Copy link
Copy Markdown

SUP-4013

@matt-humaan
matt-humaan marked this pull request as ready for review September 14, 2026 16:59

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Risk: medium. Left a non-blocking comment and did not approve: this lockfile-only bump of Next.js and sharp native packages is above the low-risk auto-approve limit for this author. Human review is needed; no reviewers were assigned.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver - Risk Based

@KidkArolis
KidkArolis merged commit 8f338ab into master Sep 15, 2026
1 check passed
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