Skip to content

fix(security): bump esbuild to >=0.28.1 to clear GHSA-gv7w-rqvm-qjhr (high) and GHSA-g7r4-m6w7-qqqr#334

Merged
krokoko merged 1 commit into
mainfrom
fix/333-bump-esbuild-0-28-1
Jun 12, 2026
Merged

fix(security): bump esbuild to >=0.28.1 to clear GHSA-gv7w-rqvm-qjhr (high) and GHSA-g7r4-m6w7-qqqr#334
krokoko merged 1 commit into
mainfrom
fix/333-bump-esbuild-0-28-1

Conversation

@scottschreckengaust

Copy link
Copy Markdown
Contributor

Summary

Closes #333. Fixes Dependabot alert #71.

The OSV dependency scan has been failing on PRs (e.g. run 27441452583) because esbuild@0.27.7 in yarn.lock is affected by:

  • GHSA-gv7w-rqvm-qjhrHigh (CVSS 8.1): missing binary integrity verification in the Deno module enables RCE via NPM_CONFIG_REGISTRY
  • GHSA-g7r4-m6w7-qqqr — Low (CVSS 2.5): arbitrary file read when running the development server on Windows

Both are patched in esbuild 0.28.1.

Changes

  • cdk/package.json — bump the direct devDependency esbuild from ^0.27.4 to ^0.28.1
  • package.json (root) — add "esbuild": "^0.28.1" to resolutions, because vite (pulled in by the docs workspace via Astro) declares esbuild ^0.27.0; without the resolution the lockfile keeps a second, still-vulnerable 0.27.x copy
  • yarn.lock — regenerated; all esbuild ranges now resolve to a single 0.28.1 entry (diff is esbuild/@esbuild platform packages only)

Verification

  • mise run security:deps (osv-scanner): No issues found
  • mise //cdk:compile + mise //cdk:test: 111 suites / 2011 tests passed (esbuild bundling of all Lambda assets works on 0.28.1)
  • mise //cli:build and mise //docs:build: passed
  • mise //cdk:synth fails locally only due to missing ec2:DescribeAvailabilityZones permission on my current AWS credentials (environment issue, unrelated to this change)

Dependabot alert #71 should auto-resolve once this merges.

…and GHSA-g7r4-m6w7-qqqr (#333)

esbuild 0.27.7 is affected by GHSA-gv7w-rqvm-qjhr (high, CVSS 8.1) and
GHSA-g7r4-m6w7-qqqr (low, CVSS 2.5), failing the OSV dependency scan on
every PR. Bump the direct devDependency in cdk/package.json and add a
root resolution so the transitive copy pulled in by vite (docs
workspace) is also lifted to 0.28.1.

Closes #333
@scottschreckengaust scottschreckengaust requested a review from a team as a code owner June 12, 2026 21:57
@scottschreckengaust

Copy link
Copy Markdown
Contributor Author

All required checks pass, including the previously failing Secrets, deps, and workflow scan (OSV) job.

Note on integ-smoke: it fails at the Configure AWS credentials step (Credentials could not be loaded) before any test runs. The same failure has occurred on every integ run on main since ~19:48 UTC today (runs at 19:48, 19:52, 20:53 UTC all failed identically), so it's a pre-existing CI credentials/OIDC issue unrelated to this dependency bump.

@scottschreckengaust scottschreckengaust added this pull request to the merge queue Jun 12, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 12, 2026
@krokoko krokoko added this pull request to the merge queue Jun 12, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 12, 2026
@krokoko krokoko added this pull request to the merge queue Jun 12, 2026
Merged via the queue into main with commit ebaa346 Jun 12, 2026
9 of 10 checks passed
@krokoko krokoko deleted the fix/333-bump-esbuild-0-28-1 branch June 12, 2026 22:44
krokoko added a commit to mayakost/sample-autonomous-cloud-coding-agents that referenced this pull request Jun 12, 2026
…aws-samples#335)

Merge-queue runs of security-pr.yml left GITLEAKS_RANGE empty, which
triggered a full-history gitleaks scan and failed on secrets living on
other branches — ejecting otherwise-green PRs (e.g. aws-samples#334) from the queue.

Use merge_group.base_sha..head_sha for queued merges and HEAD for manual
dispatch instead of scanning all reachable refs.

Co-authored-by: bgagent <bgagent@noreply.github.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P0 highest priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(security): bump esbuild to >=0.28.1 to clear GHSA-gv7w-rqvm-qjhr (high) and GHSA-g7r4-m6w7-qqqr

3 participants