Skip to content

fix(#619): resolve @anthropic-ai/sdk advisory — bump claude-agent-sdk → 0.3.144 - #666

Merged
admarble merged 2 commits into
mainfrom
feature/619-recheck-anthropic-ai-sdk-advisory-waiver-after-614
May 30, 2026
Merged

admarble merged 2 commits into
mainfrom
feature/619-recheck-anthropic-ai-sdk-advisory-waiver-after-614

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

Recheck per #619 target (2026-05-23, run 4 days early) — outcome is matrix Row 1: @anthropic-ai/claude-agent-sdk 0.3.x has lifted the @anthropic-ai/sdk pin out of the vuln range, so the #614 waiver is no longer needed.

  • npm update @anthropic-ai/claude-agent-sdk → bumps lockfile from 0.3.142 to 0.3.144 (within existing ^0.3.142 semver; no package.json change).
  • Transitive @anthropic-ai/sdk now resolves to 0.93.0, outside GHSA-p7fg-763f-g4gf range (>=0.79.0 <0.91.1).
  • The waiver was already effectively resolved by the production-deps Dependabot bump in chore(deps): bump the production-dependencies group across 1 directory with 5 updates #650 (which moved us from 0.2.138 → 0.3.142); this PR just executes the prescribed npm update step and documents the resolution.

Diagnostics

$ npm view @anthropic-ai/claude-agent-sdk@latest version
0.3.144

$ npm ls @anthropic-ai/sdk
[email protected] …
└─┬ @anthropic-ai/[email protected]
  └── @anthropic-ai/[email protected]

$ npm audit --json | jq '.vulnerabilities | keys'
[ "brace-expansion", "ws" ]   # @anthropic-ai/sdk advisory gone

Falsifiability (#614 condition) — still holds

  • grep -rE 'memoryTool|MemoryTool|memory_tool|memory-tool' src/ bin/ scripts/ → 0 hits
  • No direct @anthropic-ai/sdk imports outside the indirect query() pathway in src/lib/workflow/drivers/claude-code.ts.

Out of scope (follow-up)

Two unrelated moderates remain in npm audit. Both have fixAvailable: true — should be triaged in a separate issue:

Pre-PR AC Verification

AC source Description Status Evidence
Issue body — Recheck commands Run npm view … version dependencies.@anthropic-ai/sdk and npm audit --json | jq '.metadata.vulnerabilities' ✅ Diagnostics above
Matrix Row 1 step 1 npm update @anthropic-ai/claude-agent-sdk ✅ Lockfile diff (178 lines, claude-agent-sdk + platform subpackages 0.3.142 → 0.3.144)
Matrix Row 1 step 2 Verify advisory cleared ✅ npm audit no longer lists @anthropic-ai/sdk; resolved to 0.93.0 ≥ 0.91.1
Matrix Row 1 step 3 "0 moderate" ⚠️ Partial / Spirit met The tracked advisory is gone; 2 unrelated moderates (brace-expansion, ws) remain — out of scope for #619
Matrix Row 1 step 4 Close this issue 🔄 In this PR This PR's fix(#619) commit will auto-close on merge
Falsifiability re-check grep memoryTool … src/ bin/ scripts/ → 0 hits; no direct sdk imports ✅ Re-verified, unchanged from #614
CHANGELOG Document resolution ✅ [Unreleased] §Security entry added

Test plan

  • npm run build — clean
  • npm run lint — clean
  • npx vitest run src/lib/workflow/drivers — 49/49 (the claude-agent-sdk consumer)
  • Reviewer: re-run npm audit locally to confirm @anthropic-ai/sdk advisory is gone post-merge

Closes #619

…K advisory waiver

Recheck per #619 target (2026-05-23) — ran 4 days early, outcome is matrix Row 1.

Diagnostics
-----------
- npm view @anthropic-ai/claude-agent-sdk@latest version
  → 0.3.144 (was 0.2.138 at #614 / #619 interim 2026-05-09)
- Local install before update: [email protected] (via Dependabot #650)
- After `npm update @anthropic-ai/claude-agent-sdk`: 0.3.144
  → transitive @anthropic-ai/sdk = 0.93.0 (≥ 0.91.1, outside vuln range)
- npm audit: @anthropic-ai/sdk advisory absent; 2 unrelated moderates remain
  (brace-expansion, ws — out of scope, fixAvailable: true)

Falsifiability (#614 condition) still holds
-------------------------------------------
- grep memoryTool|MemoryTool|memory_tool|memory-tool in src/ bin/ scripts/
  → 0 hits
- No direct @anthropic-ai/sdk imports outside the indirect query() pathway in
  src/lib/workflow/drivers/claude-code.ts

Scope
-----
- Lockfile-only diff (^0.3.142 already permits 0.3.144).
- CHANGELOG [Unreleased] §Security entry.
- Tests: 49/49 in src/lib/workflow/drivers (the claude-agent-sdk consumer).
- Build, lint clean.

Entire-Checkpoint: e01eff451227
…-expansion, ws, qs)

In-range lockfile-only `npm audit fix` (no --force, no package.json change)
resolves the three remaining moderates post claude-agent-sdk bump:
- brace-expansion GHSA-jxxr-4gwj-5jf2 (large-numeric-range DoS)
- ws           GHSA-58qx-3vcg-4xpx (uninitialized-memory disclosure)
- qs           GHSA-q8mj-m7cp-5q26 (qs.stringify DoS)

Post-fix `npm audit` reports 0 vulnerabilities. Folded into this PR
rather than a separate tracker since all three are the same class of
in-range lockfile fix as the #619 claude-agent-sdk bump.

Build, lint clean; 49/49 src/lib/workflow/drivers.
@admarble
admarble merged commit bad5340 into main May 30, 2026
5 checks passed
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.

Recheck @anthropic-ai/sdk advisory waiver after #614 (target: 2026-05-23)

1 participant