chore(deps): bump sharp and next - #37
Open
dependabot[bot] wants to merge 1 commit into
Open
Conversation
Bumps [sharp](https://github.com/lovell/sharp) to 0.35.4 and updates ancestor dependency [next](https://github.com/vercel/next.js). These dependencies need to be updated together. Updates `sharp` from 0.34.5 to 0.35.4 - [Release notes](https://github.com/lovell/sharp/releases) - [Commits](lovell/sharp@v0.34.5...v0.35.4) Updates `next` from 16.2.10 to 16.3.4 - [Release notes](https://github.com/vercel/next.js/releases) - [Commits](vercel/next.js@v16.2.10...v16.3.4) --- updated-dependencies: - dependency-name: sharp dependency-version: 0.35.4 dependency-type: indirect - dependency-name: next dependency-version: 16.3.4 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
dependabot
Bot
requested review from
fanhousanbu and
jhfnetboy
as code owners
September 11, 2026 03:38
clestons
approved these changes
Sep 11, 2026
clestons
left a comment
There was a problem hiding this comment.
✅ APPROVE — #37 · 建议优先合并(取代已关闭的 #36)
Head: 4e5a8da · dependabot · next ^16.1.1 → 16.3.4,连带 sharp 0.34.5 → 0.35.4(两者必须一起升)· 2 文件 +284/−222
轮次: 2-round(纯依赖升级)· R1a+R1b DeepSeek → 判断由执行者做
作者意图(一句话):升级 Next.js 及其图片依赖 sharp。顺带修掉仓库唯一的 critical 漏洞。
更正我在 #36 上的建议:#36 已被 dependabot 关闭,由这个 PR 取代。「先合」的对象现在是 #37。
为什么建议优先合它
main 上的 next@16.2.10 落在 npm audit 报的 critical 区间 9.3.4-canary.0 – 16.3.2(中间件/Proxy 绕过、Server Actions SSRF、响应体缓存混淆等)。这个 PR 升到 16.3.4,在区间之外 —— 它的 Security Audit 是绿的;#35 上那盏红灯正是这个 next,#37 合并后 #35 rebase 即可转绿。
核过的
- integrity 与官方 registry 逐字一致:
next@16.3.4、sharp@0.35.4在 lockfile 里的sha512-…都等于registry.npmjs.org的dist.integrity。改动条目的resolved从npmmirror换成npmjs.org(与 #36 相同的换源),integrity 一致说明没有夹带。 - Node 版本:两者都要求
node >=20.9.0;.nvmrc与Dockerfile(node:20.19.0-alpine)为 20.19.0,CI 为 20.x —— 满足。 - 原生二进制:Dockerfile 是 alpine(musl)。lockfile 里
@img/sharp-linuxmusl-x64/-arm64、@img/sharp-linux-x64都同步到 0.35.4,@img/sharp-libvips-linuxmusl-x64到 1.3.3 —— 容器里的npm ci能拿到对应平台的预编译包。 - sharp 不再有安装脚本:0.34.5 带
install: node install/check.js || npm run build,0.35.4 没有,lockfile 相应去掉了hasInstallScript。安装时少执行一段第三方代码,是正向变化。 - sharp 不是直接依赖:
aastar-frontend/package.json只改了next那一行。 - CI:Build、Code Quality、Tests、Type Check、CodeQL(JS/TS)、Security Audit、Trivy、CI Success 全绿。
一处值得知道(不阻塞)
sharp 0.35 的发布说明里包括「resize 尺寸与 composite 坐标限定在坐标上限内」这类行为收紧 —— 如果前端有依赖超大尺寸图片处理的地方,行为可能从「处理」变成「报错」。CI 的 Build 全绿说明构建期没有撞上。
结论
APPROVE,建议先于 #35 合并 —— 它是修掉 critical 的那一个。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps sharp to 0.35.4 and updates ancestor dependency next. These dependencies need to be updated together.
Updates
sharpfrom 0.34.5 to 0.35.4Release notes
Sourced from sharp's releases.
... (truncated)
Commits
7f1a0a2Release v0.35.4f927818Upgrade to sharp-libvips v1.3.3e802092Prerelease v0.35.4-rc.0e13eb2fCI: Fix wasm32 build (#4589)a82a0b3Upgrade to libvips v8.18.68044fe4Bound resize dimensions to coordinate limit147f859Docs: changelog entries for #4578 #4584ee5bfb8Tests: use yauzl directly rather than via extract-zip wrapper7a77889Bump uraimo/run-on-arch-action from 3.1.0 to 3.2.0 (#4588)ea5bef2Improve support for input Streams finishing before output is requested (#4584)Updates
nextfrom 16.2.10 to 16.3.4Release notes
Sourced from next's releases.
... (truncated)
Commits
299180dv16.3.412e173d[16.3.x] Re-enable AVIF image optimization and require sharp 0.35.4 (#97949)5d9022e[backport] Fix unset crossOrigin in Turbopack manifests (#97930)d8f4560[16.3.x] Fix build error when aliasing typescript to@typescript/typescript6...656aebf[16.3] testmode: Fix infinite recursion in testmode passthrough fetch (#97691)f37c1d6[16.3.x] ci: remove pull_request_stats workflow (#97975)a9a1cb7v16.3.3968b9fc[16.3.x] Fix ISR misses with backslashes in segments when deployed on Windows3a15b4a[16.3.x] [next/image]: disable avif image optimization7378b51Backport/docs fixes 16.3 (#97649)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)You can disable automated security fix PRs for this repo from the Security Alerts page.