Repository navigation
fix(deps): bump cross-spawn to 7.1.2 and react-router to 8.5.3 - #2985
Conversation
bun audit fails on GHSA-ghv9-86vm-4v8m (cross-spawn) and on GHSA-2rq8-3rm6-2w8f, GHSA-qhgm-jj2j-75wj and GHSA-mjj8-rxh9-q8f5 (react-router).
Package TarballHow to installgh 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 |
|
Claude Security Review: no high-confidence findings. (run) |
There was a problem hiding this comment.
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 resolved7.1.2, which also satisfies@aws-cdk/cdk-assets-lib's^7.0.6;react-router^8.5.1→8.5.3), sobun install --frozen-lockfileshould hold. No duplicate/leftover vulnerable copies in the lock. - Only stable
react-routerAPIs are used insrc/(MemoryRouter,useNavigate,useParams,useLocation,useSearchParams,Navigate) — noUNSAFE_*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-patternis a plain transitive dep (NOTICEonly 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:
-
package.json:94— consider floor^7.1.2rather 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 fromPATHsees the current directory in%~dp0(fixed in 7.1.2) — that is exactly the npm/.cmd-shim patternsrc/io/exec.tsdepends on and thatsrc/io/exec-arguments.test.tsexercises (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. -
Confirm the
verify / Windowsjob 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 throwTypeErrorsynchronously) and 7.1.1 madecmd.execommands always quoted.src/io/exec.tsalready resolves the executable to a full path and always passesargsseparately, so none of those should bite, andsrc/io/exec-arguments.test.tsround-tripsembedded "quote",backslash\"quote,trail\,percent%value%,!value!through a real.cmdshim — 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).
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
What
Bumps
cross-spawnfrom 7.0.6 to 7.1.2 andreact-routerfrom 8.3.1 to 8.5.3.Why
bun run auditfails inverify / Linuxon every PR and push tov1.xsince these advisories were published:cross-spawnbelow 7.1.0: GHSA-ghv9-86vm-4v8m (critical, command injection on Windows when spawning batch files)react-routerbelow 8.5.1: GHSA-2rq8-3rm6-2w8f (high), GHSA-qhgm-jj2j-75wj (high), GHSA-mjj8-rxh9-q8f5 (moderate)How tested
bun run auditreports no vulnerabilities.bun run typecheck,bun run lint:checkandbun run buildpass.bun test src/io src/handlers/project/createpasses (171 tests).agentcore create --name bumpcheck --template agent-python-minimal --skip-installcreates the project and its git repository.