Skip to content

fix(deps): bump cross-spawn to 7.1.2 and react-router to 8.5.3 - #2985

Merged
tejaskash merged 1 commit into
v1.xfrom
fix/audit-react-router-cross-spawn
Dec 1, 2026
Merged

tejaskash merged 1 commit into
v1.xfrom
fix/audit-react-router-cross-spawn

Conversation

@tejaskash

Copy link
Copy Markdown
Contributor

What

Bumps cross-spawn from 7.0.6 to 7.1.2 and react-router from 8.3.1 to 8.5.3.

Why

bun run audit fails in verify / Linux on every PR and push to v1.x since these advisories were published:

How tested

  • bun run audit reports no vulnerabilities.
  • bun run typecheck, bun run lint:check and bun run build pass.
  • bun test src/io src/handlers/project/create passes (171 tests).
  • Built CLI: agentcore create --name bumpcheck --template agent-python-minimal --skip-install creates the project and its git repository.

@tejaskash
tejaskash requested a review from a team December 1, 2026 12:11
@github-actions github-actions Bot added the size/xs PR size: XS label Dec 1, 2026
@agentcore-devx-automation agentcore-devx-automation Bot added claude-security-reviewing Claude Code /security-review in progress agentcore-harness-reviewing AgentCore Harness review in progress labels Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Package Tarball

aws-agentcore-1.4.0.tgz

How to install

gh release download pr-2985-tarball --repo aws/agentcore-cli --pattern "*.tgz" --dir /tmp/pr-tarball
npm install -g /tmp/pr-tarball/aws-agentcore-1.4.0.tgz

@agentcore-devx-automation

Copy link
Copy Markdown
Contributor

Claude Security Review: no high-confidence findings. (run)

@agentcore-devx-automation agentcore-devx-automation Bot removed the claude-security-reviewing Claude Code /security-review in progress label Dec 1, 2026

@agentcore-devx-automation agentcore-devx-automation Bot 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.

AgentCore Harness Review

Verdict: Looks good

Dependency-only bump: package.json ranges plus the matching bun.lock entries, no source changes. I verified the mechanics against v1.x:

  • Lock is internally consistent with the manifest (cross-spawn ^7.1.0 → single resolved 7.1.2, which also satisfies @aws-cdk/cdk-assets-lib's ^7.0.6; react-router ^8.5.1 → 8.5.3), so bun install --frozen-lockfile should hold. No duplicate/leftover vulnerable copies in the lock.
  • Only stable react-router APIs are used in src/ (MemoryRouter, useNavigate, useParams, useLocation, useSearchParams, Navigate) — no UNSAFE_* contexts, so the 8.4.0 context-granularity change and the 8.5.x framework/SSR-oriented changes don't touch this codebase. Peer deps (react@19.2.8, @types/react@19.2.18) satisfy 8.5.3's new peer ranges, and the new transitive @remix-run/route-pattern is a plain transitive dep (NOTICE only enumerates direct deps, so no attribution update needed).
  • No unrelated churn in the diff (no command.md, no lockfile reformatting).

Two things worth acting on / confirming:

  1. package.json:94 — consider floor ^7.1.2 rather than ^7.1.0. The PR cites GHSA-ghv9-86vm-4v8m (fixed in 7.1.0), but cross-spawn 7.1.0 is itself affected by the follow-up GHSA-w3gc-668g-rf8f (high, Windows command injection), fixed only in 7.1.1. Separately, 7.1.0/7.1.1 carry a regression where a batch file resolved from PATH sees the current directory in %~dp0 (fixed in 7.1.2) — that is exactly the npm/.cmd-shim pattern src/io/exec.ts depends on and that src/io/exec-arguments.test.ts exercises (node "%~dp0\..\..\echo.cjs" %*). The lock pins 7.1.2 so CI and the bundled dist are fine, but the declared range still permits two versions that are both vulnerable and functionally broken for this use case. Options: bump the floor to ^7.1.2, or leave it and rely on the lock.

  2. Confirm the verify / Windows job is green before merging. The bump's only real behavioral surface is Windows: 7.1.0 changed batch-file argument escaping (inner " → "", /e:on /v:off, line breaks now throw TypeError synchronously) and 7.1.1 made cmd.exe commands always quoted. src/io/exec.ts already resolves the executable to a full path and always passes args separately, so none of those should bite, and src/io/exec-arguments.test.ts round-trips embedded "quote", backslash\"quote, trail\, percent%value%, !value! through a real .cmd shim — but that suite only runs on Windows, and the PR description reports Linux-only verification. The checks were still in progress when I reviewed.

No code changes required beyond your call on (1).

@agentcore-devx-automation agentcore-devx-automation Bot removed the agentcore-harness-reviewing AgentCore Harness review in progress label Dec 1, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.08%. Comparing base (4ac7f3b) to head (2e05f64).
⚠️ Report is 1 commits behind head on v1.x.

Additional details and impacted files
@@           Coverage Diff           @@
##             v1.x    #2985   +/-   ##
=======================================
  Coverage   97.08%   97.08%           
=======================================
  Files         793      793           
  Lines       72910    72910           
=======================================
  Hits        70783    70783           
  Misses       2127     2127           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tejaskash
tejaskash merged commit f548024 into v1.x Dec 1, 2026
26 of 27 checks passed
@tejaskash
tejaskash deleted the fix/audit-react-router-cross-spawn branch December 1, 2026 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/xs PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants