[Aikido] Fix security issue in sharp via minor version upgrade from 0.34.5 to 0.35.3 - #25
Open
aikido-autofix[bot] wants to merge 1 commit into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
aikido-autofix
Bot
force-pushed
the
fix/aikido-security-update-packages-88358418-na3n
branch
from
August 15, 2026 00:08
4a0125e to
7c71efc
Compare
aikido-autofix
Bot
force-pushed
the
fix/aikido-security-update-packages-88358418-na3n
branch
from
August 20, 2026 00:10
7c71efc to
3972bcb
Compare
aikido-autofix
Bot
force-pushed
the
fix/aikido-security-update-packages-88358418-na3n
branch
from
August 22, 2026 23:55
3972bcb to
137006d
Compare
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.
Upgrade sharp to fix high-severity vulnerabilities in libvips affecting GIF, TIFF, and VIPS image processing.
✅ Code not affected by breaking changes.
✅ No breaking changes from the sharp 0.34.5 to 0.35.0 upgrade affect this codebase.
The package
sharpis present only as an optional dependency of Astro (found inpackage-lock.json), but:The codebase does not directly import or use
sharpin any source filesThe codebase does not use Astro's
ImageorPicturecomponents that would trigger sharp usageThe codebase does not use any of the deprecated features (
failOnError,paletteBitDepth, deprecatedsharpenproperties, orformat.jp2k)The project already requires Node.js >= 22.18.0 (per
package.json), which exceeds sharp 0.35.0's requirement of Node.js >= 20.9.0Since sharp is not actively used in this codebase, none of the breaking changes (Node.js version requirement, removed deprecated APIs, or format renaming) will cause any issues.
All breaking changes by upgrading sharp from version 0.34.5 to 0.35.3 (CHANGELOG)
installscript frompackage.jsonfile. Compiling from source is now opt-in via thebuildscript.iqquality metrics.limitInputChannelswith a default value of 5.failOnErrorconstructor property.paletteBitDepthfrommetadataresponse.sharpenoperation.format.jp2kasformat.jp2for API consistency.✅ 1 CVE resolved by this upgrade
This PR will resolve the following CVEs:
🤖 Remediation details
Fix GHSA-f88m-g3jw-g9cj: upgrade
sharpto patched version viaastroparent bumpsharp, which was being pulled in at the vulnerable version0.34.5throughastro.package.json(two declared dependency version specs updated) and reflected inpackage-lock.json(lockfile refreshed vianpm install --package-lock-only).sharp
sharpis a transitive optional dependency introduced byastro; it is not declared directly in the project'spackage.json. The installed version0.34.5falls within the vulnerable range addressed by GHSA-f88m-g3jw-g9cj, and the patched floor is0.35.0.astro@6.xdeclaredsharpas^0.34.0, which could not resolve to0.35.0;astro@7.0.4widened the spec to^0.34.0 || ^0.35.0, allowing npm to resolvesharpto0.35.3. To land this fix,astrowas bumped from^6.1.6to^7.0.4inpackage.json. Because@astrojs/vercel@10.xcarries a peer-dependency constraint ofastro ^6.0.0, it was also bumped to^11.0.0(which requiresastro ^7.0.0) to maintain a consistent, peer-valid dependency tree alongside theastromajor upgrade.Version changes
astro^6.1.6(resolved6.1.6)^7.0.4(resolved7.2.4)sharpCVE@astrojs/vercel^10.0.6(resolved10.0.6)^11.0.0(resolved11.0.7)astro ^6.0.0incompatible with astro v7; v11 targetsastro ^7.0.0sharp0.34.50.35.3astroparent bump