-
Notifications
You must be signed in to change notification settings - Fork 51
fix(create-sei): clear the new Next.js and sharp advisories #351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| --- | ||
| '@sei-js/create-sei': patch | ||
| --- | ||
|
|
||
| Bump the Next template's `next` and `sharp` pins to clear three newly published advisories. | ||
|
|
||
| The generated-app smoke audits every variant and fails on any high or critical finding. Three advisories landed against the pinned versions, so the check went red without any change to the template: | ||
|
|
||
| - `GHSA-p293-qw3h-jr36` — critical, unauthenticated RCE on Windows-hosted Next.js servers, `>=13.4.0 <15.5.24`. | ||
| - `GHSA-2xp9-vwfh-vxw4` — critical, unauthenticated RCE in the Image Optimization API when AVIF files are used, `>=10.0.0 <15.5.24`. | ||
| - `GHSA-rgj7-g3m4-5g8c` — high, heap overflow in Sharp's bundled libheif decoder, `<0.35.4`. | ||
|
|
||
| `next` moves `15.5.21` to `15.5.25` and the `sharp` override `0.35.3` to `0.35.4`, both inside their pinned minors. | ||
|
|
||
| Next also widened its own Sharp declaration to `^0.34.3 || ^0.35.4`, so the pinned override now sits inside the range Next supports. The image notes in the template README and `next.config.mjs` said the opposite and are corrected: images stay unoptimized to avoid requiring a native Sharp build, which is a template choice rather than a security tradeoff. The `sharp` override itself still is one, and both notes now say so — the `0.34.x` half of Next's range remains inside the advisory, making `0.35.4` the floor rather than a free upgrade. | ||
|
|
||
| The remaining `decode-uri-component` finding is moderate and does not block the smoke. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,7 +25,7 @@ | |
| "@tailwindcss/postcss": "4.3.3", | ||
| "@tanstack/react-query": "5.85.3", | ||
| "ethers": "6.17.0", | ||
| "next": "15.5.21", | ||
| "next": "15.5.25", | ||
| "pino-pretty": "13.1.3", | ||
| "postcss": "8.5.26", | ||
| "react": "19.1.2", | ||
|
|
@@ -46,7 +46,7 @@ | |
| "@metamask/sdk": "0.33.1", | ||
| "@metamask/sdk-communication-layer": "0.33.1", | ||
| "postcss": "8.5.26", | ||
| "sharp": "0.35.3", | ||
| "sharp": "0.35.4", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [suggestion] This override is still security-load-bearing, and the new prose around it now reads as if it isn't. Next's declared range ( |
||
| "use-sync-external-store": "1.6.0", | ||
| "uuid": "11.1.1", | ||
| "ws": "8.21.3" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nit] Accurate as far as it goes, but "turning it on is a template choice" understates one constraint: the release smoke asserts the rendered home page contains no
/_next/image(packages/create-sei/scripts/smoke-generated-app.ts:323), so flippingunoptimizedtofalsefails CI until that assertion is updated too. Worth a half-sentence here so the next person doesn't discover it from a red check.