Skip to content

[Website] Update sharp, Next.js, and source-map-js to clear advisories - #10531

Merged
glen-84 merged 1 commit into
mainfrom
gai/website-npm-security-updates
Oct 12, 2026
Merged

glen-84 merged 1 commit into
mainfrom
gai/website-npm-security-updates

Conversation

@glen-84

@glen-84 glen-84 commented Oct 12, 2026

Copy link
Copy Markdown
Member

Summary

Clears the website's npm advisories that have a usable fix. Each package moves to the newest version outside the affected ranges that has been public for at least 7 days.

  • sharp 0.35.4 → 0.35.5, which ships librsvg 2.63.2 (GHSA-wq5f-xc86-pv6w). The image optimization step decodes avatars and thumbnails fetched from third-party hosts.
  • next, @next/mdx, and eslint-config-next 16.3.6 → 16.3.8, covering six Next.js advisories such as GHSA-cjq9-62q9-8jv4. The static export never runs the affected server features, but the next dev MCP endpoint fix applies on developer machines.
  • source-map-js 1.2.1 → 1.2.2 in the lockfile, within every parent's ^1.2.1 range (GHSA-68fv-2mgg-jv7q).

npm audit still reports the braces, sprintf-js, and katex chains. braces and sprintf-js have no fixed release, and the KaTeX code that runs at build is the copy bundled inside mermaid, which no override reaches.

Test plan

  • tsc --noEmit, npm run lint, npm run build, and npm run build-storybook:test pass.
  • npm run optimize-images re-encodes all 220 local images and decodes the 24 remote images with sharp 0.35.5.
  • The 16.3.8 export has the same file list as the 16.3.6 export outside hashed chunks, and the 198 docs Open Graph images are byte-identical.
  • npm audit no longer reports these advisories in either the full or the --omit=dev view.

Copilot AI lite review requested due to automatic review settings October 12, 2026 16:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No unresolved review issues were identified.

0 open findings

What changed in this PR

Updates website dependencies to patched versions addressing reported npm advisories.

Changes:

  • Upgrades Next.js packages to 16.3.8.
  • Upgrades sharp to 0.35.5.
  • Upgrades source-map-js to 1.2.2.
  • Refreshes the npm lockfile and integrity data.
File Description
website/​package.json Updates direct dependency versions.
website/​package-lock.json Locks patched package and platform versions.
Files not reviewed (1)
  • website/package-lock.json: Generated file

🧠 Review effort: Lite


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@glen-84
glen-84 merged commit ec839b6 into main Oct 12, 2026
23 checks passed
@glen-84
glen-84 deleted the gai/website-npm-security-updates branch October 12, 2026 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants