Skip to content

chore(deps): upgrade esbuild and remove OSV exceptions - #130

Merged
ElbertePlinio merged 4 commits into
mainfrom
chore/96-upgrade-deps-remove-osv-exceptions
Sep 9, 2026
Merged

ElbertePlinio merged 4 commits into
mainfrom
chore/96-upgrade-deps-remove-osv-exceptions

Conversation

@ElbertePlinio

@ElbertePlinio ElbertePlinio commented Sep 7, 2026 •

Copy link
Copy Markdown
Member

Closes #96

Upgrade the single resolved esbuild from 0.27.7 to 0.28.1 and remove both IgnoredVulns entries entirely. osv-scanner.toml now has no exceptions.

Dependency chains: root [email protected] -> [email protected]; root [email protected] -> [email protected] -> [email protected], also through [email protected]. Both build tools request ^0.27.0. A root Bun override deliberately selects 0.28.1, the first fixed release for GHSA-g7r4-m6w7-qqqr, for every chain and matching platform binary. This is outside the upstream ranges, so compatibility is verified here rather than claimed as upstream-supported. The 0.28.0 breaking change adds install-time binary integrity checks; no API used by our build requires migration. Keeping tsup/Vitest avoids an unrelated build-system or test-runner major migration.

The historical Hono chain was packages/{cli,mcp-server} -> @modelcontextprotocol/[email protected] -> @hono/[email protected]. GHSA-frvp-7c67-39w9 is fixed in 1.19.15 and 2.0.5. Main already contains the #94 split SDK 2.0.0 migration (ec704ce), which removed this dependency entirely. No vulnerable Hono adapter remains and none is reintroduced.

Retain raw-wire MCP negotiation, malformed input, EOF/signal shutdown, browser lifecycle, packed CLI execution, and security coverage. Add checks for all generated CLI chunks and linked sourcemaps, bundled workspace imports, executable shebangs, and real generated-to-TypeScript source-line mappings. Build freshness now includes the root package manifest and Bun lockfile, preventing dependency changes from testing stale output.

Validation: bun install passed; CI-pinned Bun 1.3.12 also passed install --frozen-lockfile. bun run typecheck, bun run lint, bun run test, bun run test:coverage, bun run build, and complexity-gate check --changed passed. Both test runs passed 116 files and 1,481 tests, with four desktop skips (two xterm-dependent, one Zenity-dependent, one CI-only). PICKFORGE_REQUIRE_BROWSER=1 was set for both runs; browser tests ran with the sandbox enabled. Coverage: statements/lines 85.09%, branches 86.87%, functions 91.38%, with all existing thresholds unchanged. Security tests are included. Live Android was not opted in. No Cargo files changed, so the task's conditional Rust test was not run locally.

The dependency-audit action pinned at 9a498708959aeaef5ef730655706c5a1df1edbc2 uses OSV scanner v2.3.8. Ran its exact command, osv-scanner scan source --recursive ./, with the checksum-verified v2.3.8 release binary: 106 Cargo packages and 312 Bun packages scanned, exit 0, No issues found. Docker socket access is unavailable locally, so this uses the same scanner version natively rather than the action container. An additional scan source --recursive --format json --all-vulns ./ returned "results": []; neither advisory appears as an unfiltered or allowlisted finding.

No user-visible behavior changed, so no release Changes bullet is needed. CI checks remain the final cross-platform gate; do not merge this PR as part of this task.

Independent final review approved with no blocking findings. Parent confirmed complexity-gate exit 0 after the review. GitHub dependency-audit, gitleaks, Rust on Linux and Windows, candidate builds, and Apple silicon/clean Flutter container smokes passed. The CI TypeScript test job is still running.

@ElbertePlinio

Copy link
Copy Markdown
Member Author

Added a tracked exception for GHSA-82fw-gwwq-j7x9 (vitest 3.2.6, medium, devDependency only; OSV began reporting it 2026-09-09). The removal is #132 with the vitest 4 upgrade.

@ElbertePlinio
ElbertePlinio merged commit 98cea8c into main Sep 9, 2026
10 checks passed
@ElbertePlinio
ElbertePlinio deleted the chore/96-upgrade-deps-remove-osv-exceptions branch September 9, 2026 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade dependencies and remove the remaining OSV exceptions

1 participant