Repository navigation
Closed
Labels
Description
Context
#614 / #615 resolved Cluster 1 of the recent npm audit findings (fast-uri, ip-address, express-rate-limit). Cluster 2 — the @anthropic-ai/sdk Local Filesystem Memory Tool advisory (GHSA-p7fg-763f-g4gf, vulnerable range >=0.79.0 <0.91.1) — was waived because:
- The memory tool is unused in this repo (
grep -rE 'memoryTool|MemoryTool|memory_tool|memory-tool' src/ bin/ scripts/→ 0 hits; onlyquery()is consumed bysrc/lib/workflow/drivers/claude-code.ts). - The parent
@anthropic-ai/[email protected](latest published as of 2026-05-09) pins^0.81.0of@anthropic-ai/sdk, which cannot resolve out of the vuln range under semver — Option C (package.jsonoverrides) was rejected because the entry would be reverted as soon as upstream bumps its dep range.
This issue tracks the recheck so the waiver doesn't drift into "we forgot."
Recheck (target: 2026-05-23, ~2 weeks)
npm view @anthropic-ai/claude-agent-sdk@latest version dependencies.@anthropic-ai/sdk
npm audit --json | jq '.metadata.vulnerabilities'| Outcome | Action |
|---|---|
claude-agent-sdk released with @anthropic-ai/sdk pinned to >= 0.91.1 |
npm update @anthropic-ai/claude-agent-sdk; verify npm audit reports 0 moderate; close this issue. |
| Still pinned in the vuln range, no upstream movement | Reassess: file a Dependabot ecosystem-grouping nudge, or apply package.json overrides as a last resort with explicit waiver-removal date. |
| New advisory lands in this chain | Re-run /assess for fresh triage. |
Falsifiability
The waiver hinges on the memory tool being unused. If any future PR adds usage of:
@anthropic-ai/sdk's Local Filesystem Memory Tool, or- direct
@anthropic-ai/sdkimports outside thequery()pathway,
re-grep and re-evaluate before merging that PR — the "not exploitable here" claim no longer holds.
Non-Goals
- Force
npm audit fix --force(would do a major bump on@anthropic-ai/claude-agent-sdk; not warranted for an unreachable advisory). - Re-open Resolve npm audit findings (5: 4 moderate, 1 high) #614 — that issue's ACs are met; this is a forward-looking tracker.
References
- Resolve npm audit findings (5: 4 moderate, 1 high) #614 — original audit triage
- fix(#614): resolve npm audit findings (cluster 1; cluster 2 waived) #615 — Cluster 1 PR
- CHANGELOG entry under
### Security([Unreleased])
Activity
admarble commentedon May 10, 2026
Interim recheck — 2026-05-09 (14 days before target)
Ran the diagnostics from the issue body early; outcome is Row 2 of the matrix (still pinned, no upstream movement). Keeping the waiver in place and re-checking on/after 2026-05-23.
Diagnostics
Both moderates trace to GHSA-p7fg-763f-g4gf via
@anthropic-ai/sdk(range>=0.79.0 <0.91.1) →@anthropic-ai/claude-agent-sdk. Upstream has shipped 10 versions since #614 (0.2.124 → 0.2.138) without moving the@anthropic-ai/sdkpin off^0.81.0.Falsifiability re-check (still holds)
Memory tool unused; no direct
@anthropic-ai/sdkimports outsidequery(). Waiver rationale unchanged.Action
package.jsonoverrides— still brittle per the issue's own non-goal).overrideswith explicit removal date).No code change in this pass.
admarble commentedon May 11, 2026
→ PARK — Date-based recheck tracker; target 2026-05-23. Interim recheck on 2026-05-09 already confirmed Row 2 (no upstream movement) — waiver still valid.
Resume after: 2026-05-23 (rerun the diagnostic commands from the body).
admarble commentedon May 19, 2026
/exec progress — recheck complete, matrix Row 1 outcome
Ran 4 days early (today 2026-05-19, target 2026-05-23). Diagnostics show the tracked advisory is fully resolved upstream — no need to wait the remaining 4 days.
Diagnostics
Between the 2026-05-09 interim recheck and today, upstream landed
@anthropic-ai/[email protected](a major) which lifted the@anthropic-ai/sdk ^0.81.0pin. Dependabot's production-deps group bump (#650) already moved this repo onto0.3.142before this recheck ran;npm updatein this PR takes us to0.3.144.Matrix Row 1 actions
npm update @anthropic-ai/claude-agent-sdk@anthropic-ai/sdkadvisory cleared@anthropic-ai/[email protected]resolved, audit no longer lists it)npm auditreports0 moderatebrace-expansion,ws) — out of scope for #619fix(#619))Falsifiability (still holds)
Quality gates
npm run build— ✅ cleannpm run lint— ✅ cleannpx vitest run src/lib/workflow/drivers— ✅ 49/49 (covers theclaude-agent-sdkconsumer atsrc/lib/workflow/drivers/claude-code.ts)Out of scope — follow-up needed
npm auditpost-update still reports 2 moderates, both unrelated to GHSA-p7fg-763f-g4gf:brace-expansion>=5.0.0 <5.0.65.0.2 - 5.0.5ws>=8.0.0 <8.20.18.0.0 - 8.20.0These should be tracked separately — both look like a simple
npm audit fixplus a #614/#615-style verification pass. Not pulling them into #619 because (a) they post-date the waiver this issue tracks, and (b) bundling them would muddy the close criteria.PR
admarble commentedon May 19, 2026
QA Review for Issue #619
Size Gate
CHANGELOG.md+package-lock.jsononly; zero source code for sub-agents to scanPrecheck Findings
npm view/npm auditdiagnostic commands from the issue bodySource:
.sequant/gap-precheck.json(schemaVersion 1)Motivating-Example Fixture Verification (Phase 0c → §6c Step 4)
Ran the issue-body diagnostics against the post-bump tree:
Verbatim AC fixture matches exec-comment claims. Fixture status: matched.
AC Coverage
#619's ACs are implicit (outcome matrix + falsifiability + non-goals). Mapping:
npm update @anthropic-ai/claude-agent-sdkperformedclaude-agent-sdk0.3.142 → 0.3.144 (all 9 platform-binary subpackages bumped consistently); resolved@anthropic-ai/[email protected]@anthropic-ai/sdkno longer in vuln range>=0.79.0 <0.91.10.93.0is outside the range; advisory no longer appears innpm auditoutputd0fd731prefixedfix(#619):)grep -rE 'memoryTool|MemoryTool|memory_tool|memory-tool' src/ bin/ scripts/→ 0 hits@anthropic-ai/sdkimports outsidequery()pathwaygrep -rE "from ['\"]@anthropic-ai/sdk['\"]"→ 0 hits; onlysrc/lib/workflow/drivers/claude-code.tsimports viaclaude-agent-sdknpm audit fix --force(major bump)npm updatewithin^0.3.142constraint — nopackage.jsonchangeCoverage: 5/6 fully met; 1 pending (auto-close on merge).
Quality Metrics
any)CI Status
typecheckvalidate-skillsvalidate-pluginbuild (20.x)build (22.x)CI Summary: 3 passed, 2 pending, 0 failed.
Markdown-only CI relaxation does NOT apply — diff includes
package-lock.json, which the detector treats as build-affecting. Build matrix is gating because lockfile changes can in principle break dependency resolution at build time (even though typecheck has already confirmed the resolution is sound).Code Review
Strengths:
package.jsonchange because^0.3.142already permits0.3.144. This is the minimal-blast-radius approach for a security-driven bump.@anthropic-ai/claude-agent-sdk-*platform binary subpackages bumped to0.3.144in lockstep with the parent.@anthropic-ai/sdkpeer constraint relaxation visible in the diff (^0.93.0→>=0.93.0) is upstream-driven (it's how[email protected]declared its dep range) — not a project-level decision.0.3.142, and acknowledges the two remaining unrelated moderates instead of glossing them.Issues:
brace-expansion/wsmoderates remain post-update — the exec comment correctly flags them as out of scope, but no follow-up issue has been filed yet (gh issue list --search "brace-expansion"and"ws GHSA-58qx"both return 0). The exec comment commits to "tracked separately" but the tracker hasn't been opened.Suggestions:
brace-expansionGHSA-jxxr-4gwj-5jf2 +wsGHSA-58qx-3vcg-4xpx before closing this one, so the audit-clean trail doesn't drift the way the original Recheck @anthropic-ai/sdk advisory waiver after #614 (target: 2026-05-23) #619 waiver almost did. Both havefixAvailable: true, so it should be a small Resolve npm audit findings (5: 4 moderate, 1 high) #614/fix(#614): resolve npm audit findings (cluster 1; cluster 2 waived) #615-style follow-up.CHANGELOG Verification
CHANGELOG.mdexistsfix(#619):commit)[Unreleased]entry### SecurityResult: CHANGELOG requirements met. The entry is unusually thorough — captures the upstream-version chain (0.2.138 → 0.3.142 via #650 → 0.3.144 via this PR), the transitive
@anthropic-ai/sdkversion, the vuln range, and the two unrelated moderates.Risk Assessment
claude-agent-sdk'squery()API between these two patches. Localnpx vitest run src/lib/workflow/drivers(49/49) andnpm run buildin the exec comment cover this; CI build matrix in progress will confirm cross-Node-version.src/lib/workflow/drivers/claude-code.tsfile, which was not modified).Adversarial Re-Read
Findings: No gaps found because: (1) Phase 0c fixture (
npm view/npm audit) re-run against the post-bump tree confirms@anthropic-ai/[email protected]is resolved and the GHSA-p7fg-763f-g4gf advisory is gone fromnpm audit's.vulnerabilitieskeys; (2) the exec comment's "evidence" is post-fix validation (audit shows advisory cleared), not a pre-fix bug repro; (3) process state is clean — branchfeature/619-recheck-anthropic-ai-sdk-advisory-waiver-after-614is in sync withorigin, working tree clean, single squash-worthy commitd0fd731; (4) sibling sites are N/A (cross-file: SDK has one consumer atsrc/lib/workflow/drivers/claude-code.ts, unchanged; intra-file: lockfile has no call sites); (5) Non-Goals checked — nonpm audit fix --forcewas used (plainnpm updateinside^0.3.142), and #614 is not being re-opened. The one prose-vs-action gap is the unfiled follow-up forbrace-expansion/ws— a "should" not an AC, captured as a Suggestion.Status: Clean
Verdict: NEEDS_VERIFICATION
All ACs are MET except the close-on-merge step (PENDING by design). The blocker is the gating CI build matrix (
build (20.x),build (22.x)) which isIN_PROGRESS. Per the QA verdict algorithm, gating CI checks pending →NEEDS_VERIFICATION, notREADY_FOR_MERGE.Once both build jobs report
SUCCESS, this flips toREADY_FOR_MERGEwith no further review needed — the diff has no source code, no test changes, and no behavior change beyond the dependency resolution. If either build job fails, that's the regression signal to investigate.Documentation
[Unreleased] / ### SecurityNext Steps
build (20.x)andbuild (22.x)to complete on PR fix(#619): resolve @anthropic-ai/sdk advisory — bump claude-agent-sdk → 0.3.144 #666 — re-run/qa 619(or rely on the prior-QA short-circuit at the same SHA) for the finalREADY_FOR_MERGEverdict.brace-expansionGHSA-jxxr-4gwj-5jf2 +wsGHSA-58qx-3vcg-4xpx (bothfixAvailable: true) so the audit-clean trail stays continuous. The exec comment commits to "tracked separately" — do that work now while context is fresh, mirroring the Resolve npm audit findings (5: 4 moderate, 1 high) #614/fix(#614): resolve npm audit findings (cluster 1; cluster 2 waived) #615 pattern.fix(#619):will auto-close this issue. Confirm[Unreleased]Security entry stays accurate before the next release cut.admarble commentedon May 30, 2026
QA Review for Issue #619 (re-run — CI now green)
Re-run of the prior QA at the same commit
d0fd731. The prior verdict wasNEEDS_VERIFICATION, blocked solely on the in-progress build matrix. All 5 CI checks now pass, so the verdict flips as the prior QA predicted.CI Status
typecheckvalidate-skillsvalidate-pluginbuild (20.x)build (22.x)CI Summary: 5 passed, 0 pending, 0 failed.
AC Coverage (unchanged from prior QA, re-verified against lockfile)
npm update @anthropic-ai/claude-agent-sdkperformedclaude-agent-sdk0.3.142 → 0.3.144 (parent + 8 platform subpackages, all in lockstep)@anthropic-ai/sdkoutside vuln range>=0.79.0 <0.91.1@anthropic-ai/[email protected]✓d0fd731prefixedfix(#619):auto-closes on mergegrep -rE 'memoryTool|MemoryTool|memory_tool|memory-tool' src/ bin/ scripts/→ 0 hits@anthropic-ai/sdkimports outsidequery()src/lib/workflow/drivers/claude-code.tsconsumes it indirectlynpm audit fix --forcemajor bumpnpm updatewithin^0.3.142; nopackage.jsonchangeCoverage: 5/6 fully met; 1 PENDING by design (auto-close on merge — not a verification gate).
Quality Metrics
Code Review
Strengths:
package.jsonchange since^0.3.142already permits0.3.144. Only@anthropic-ai/*packages touched — verified no other packages in the diff.### Securityentry is thorough and honest — documents the full version chain (0.2.138 → 0.3.142 via chore(deps): bump the production-dependencies group across 1 directory with 5 updates #650 → 0.3.144), the transitive resolution, the vuln range, and the two unrelated remaining moderates.Honesty note (not a defect):
origin/main—@anthropic-ai/[email protected]resolves there today via the chore(deps): bump the production-dependencies group across 1 directory with 5 updates #650 Dependabot bump that landed[email protected]. This PR's lockfile change (0.3.142 → 0.3.144) is a no-op for security posture (sdk stays at 0.93.0 either way). The PR's real value is the CHANGELOG documentation + closing the Recheck @anthropic-ai/sdk advisory waiver after #614 (target: 2026-05-23) #619 tracker. The PR description states this transparently ("already effectively resolved by the production-deps Dependabot bump in chore(deps): bump the production-dependencies group across 1 directory with 5 updates #650"), so this is accurate framing, not a gap.Issues: None blocking.
CHANGELOG Verification
CHANGELOG.mdexistsfix(#619):)[Unreleased]entry under### SecurityRisk Assessment
claude-agent-sdk'squery()API between 0.3.142 and 0.3.144. Covered bynpx vitest run src/lib/workflow/drivers(49/49) and the now-green build matrix on both Node 20.x/22.x.src/lib/workflow/drivers/claude-code.ts) is unchanged.Adversarial Re-Read
Findings: No gaps in the change itself. Two pre-merge process items surfaced (neither is an AC deficiency): (1) the follow-up issue for the remaining
brace-expansion(GHSA-jxxr-4gwj-5jf2) +ws(GHSA-58qx-3vcg-4xpx) moderates — bothfixAvailable: true— is still unfiled (gh issue list --searchreturns only #619). The exec comment committed to "tracked separately"; do that now so the audit-clean trail doesn't drift the way #619 itself nearly did. (2) Branch is 2 commits behind main, and those 2 commits edit the same[Unreleased]CHANGELOG region this PR appends to —mergeableis currentlyUNKNOWN; expect a possible trivial CHANGELOG conflict to resolve at merge.Status: Clean (both items are follow-up/merge hygiene, not gaps in this diff).
Verdict: READY_FOR_MERGE
All in-scope ACs are MET, CI is fully green across the matrix, the diff is minimal and source-free, and the CHANGELOG is accurate and honest about the #650 prior-resolution. This matches the prior QA's stated transition ("Once both build jobs report SUCCESS, this flips to READY_FOR_MERGE").
Before merging (non-blocking but recommended):
brace-expansion+wsmoderates so the audit-clean trail stays continuous (mirror the Resolve npm audit findings (5: 4 moderate, 1 high) #614/fix(#614): resolve npm audit findings (cluster 1; cluster 2 waived) #615 pattern).CHANGELOG.mdconflict on merge (branch is 2 behind main, overlapping[Unreleased]edits) — resolve by keeping both the### Fixedand### Securityblocks.Documentation
[Unreleased] / ### Securityfix(#619): npm audit fix clears remaining transitive moderates (brace…
fix(#619): resolve @anthropic-ai/sdk advisory — bump claude-agent-sdk…
fix(#619): bump @anthropic-ai/claude-agent-sdk → 0.3.144, resolves SD…
fix(#619): npm audit fix clears remaining transitive moderates (brace…