Skip to content

Pin esbuild to patched version / 固定 esbuild 到安全版本#4323

Merged
esengine merged 1 commit into
main-v2from
fix/esbuild-security-override
Jun 14, 2026
Merged

Pin esbuild to patched version / 固定 esbuild 到安全版本#4323
esengine merged 1 commit into
main-v2from
fix/esbuild-security-override

Conversation

@SivanCola

Copy link
Copy Markdown
Collaborator

Summary

  • Pin transitive esbuild resolution to 0.28.1 with npm/pnpm overrides for the site, crash report worker, and desktop frontend.
  • Refresh npm and pnpm lockfiles so Dependabot resolves the patched esbuild release.
  • Keep Astro, Wrangler, and Vite versions unchanged to avoid a broader framework upgrade while upstream dependency ranges catch up.

Related PRs

Verification

  • npm audit --json in site, workers/crash-report, and desktop/frontend
  • pnpm audit --audit-level low in desktop/frontend
  • npm run build in site
  • npm run typecheck in workers/crash-report
  • wails generate module followed by npm run build in desktop/frontend
  • npm test in desktop/frontend

Pin transitive esbuild resolution to 0.28.1 across the site, crash report worker, and desktop frontend dependency graphs.

This addresses the GitHub Advisory Database alerts for vulnerable esbuild versions while avoiding unrelated framework upgrades.

Co-authored-by: SivanCola <32437197+SivanCola@users.noreply.github.com>
@SivanCola SivanCola requested a review from esengine as a code owner June 13, 2026 18:39
@github-actions github-actions Bot added v2 Go rewrite (1.x) — main-v2 branch, active development desktop Wails desktop app (desktop/**) labels Jun 13, 2026
@SivanCola

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 047411dedc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@esengine esengine merged commit 76ae52e into main-v2 Jun 14, 2026
14 checks passed
@esengine esengine deleted the fix/esbuild-security-override branch June 14, 2026 12:45
esengine added a commit that referenced this pull request Jun 15, 2026
#4323 pinned esbuild to 0.28.1 (npm overrides + pnpm-workspace overrides)
to pick up the patched release. But vite 6.4.2 depends on esbuild
^0.25.0, and 0.28.1 breaks its dev dependency pre-bundling: every dep
using destructuring fails with "Transforming destructuring to the
configured target environment is not supported yet", so `wails dev`
never starts. The advisory the pin targeted was already fixed in 0.25.0,
which vite enforces anyway.

Cap the override at ^0.25.0 (>=0.25.0 <0.26.0): still patched, matches
vite's own range, and blocks Dependabot from bumping back to 0.28.
Resolves to 0.25.12. site/ and workers/ keep 0.28.1 (Astro/Wrangler are
unaffected by the vite dev path).

package-lock.json is regenerated by npm 11 — reformatting only, no
dependency drift beyond esbuild.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

desktop Wails desktop app (desktop/**) v2 Go rewrite (1.x) — main-v2 branch, active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants