Repository navigation
Closed
Labels
dependenciesPull requests that update a dependency fileplannedImplementation plan approvedready-for-reviewReady for code review
Description
Context
After PR #611 merged (production-deps bump), npm audit continues to report 5 findings. All are transitive and all report fixAvailable: true. Filing this so the resolution path is tracked rather than ad-hoc.
Findings
| Package | Severity | Advisory | fixAvailable |
|---|---|---|---|
fast-uri |
high | path traversal via percent-encoded dot segments; host confusion via percent-encoded authority delimiters | ✅ |
@anthropic-ai/sdk |
moderate | Insecure default file permissions in Local Filesystem Memory Tool | ✅ |
@anthropic-ai/claude-agent-sdk |
moderate | via @anthropic-ai/sdk |
✅ |
ip-address |
moderate | XSS in Address6 HTML-emitting methods |
✅ |
express-rate-limit |
moderate | via ip-address |
✅ |
Two effective clusters:
- fast-uri / ip-address / express-rate-limit — URI/IP parsing chain
- @anthropic-ai/sdk → claude-agent-sdk — file-permissions advisory in the memory tool
Acceptance Criteria
- AC-1:
npm audit fix --dry-runoutput reviewed and recorded in this issue (no--force). - AC-2: For each of the 5 advisories, exploitability assessed against this repo's actual usage:
-
fast-uri: do we parse untrusted URIs? Where? -
ip-address: do we renderAddress6HTML output anywhere? (likely no) -
@anthropic-ai/sdkmemory-tool perms: do we use the local-filesystem memory tool? - Findings recorded as a brief table.
-
- AC-3: Resolution path chosen per-cluster and justified:
- Option A — apply
npm audit fix(patch/minor only, no breaking) - Option B — wait for the next Dependabot run to deliver the upstream bump
- Option C —
package.jsonoverrides(last resort, with explicit reason)
- Option A — apply
- AC-4: After remediation,
npm auditreports 0 high and ≤ prior moderate count for non-exploitable cases (or each remaining finding has a documented waiver in this issue). - AC-5: CI green on the resulting PR (
build (20.x),build (22.x),typecheck,validate-skills,validate-plugin).
Non-Goals
- Forcing major-version bumps via
npm audit fix --force. - Fixing the
[email protected]Node-23 engine warning — that's a developer-environment issue (Node 23 is non-LTS); resolved by using Node 20 or 22 locally, no repo change needed.
Notes
- Lockfile-only PR chore(deps): bump the production-dependencies group across 1 directory with 2 updates #611 (Dependabot, merged 2026-05-09) bumped agent-sdk to 0.2.138 but the
@anthropic-ai/sdkadvisory persists — agent-sdk's pin still resolves to a vulnerable version. May resolve on the next agent-sdk release; verify before opening a manual override. - Prefer letting Dependabot deliver these where possible to avoid merge churn with PRs chore(deps): bump the production-dependencies group across 1 directory with 8 updates #599 / chore(deps): bump the production-dependencies group across 1 directory with 2 updates #611's grouping.
Metadata
Metadata
Assignees
Labels
dependenciesPull requests that update a dependency fileplannedImplementation plan approvedready-for-reviewReady for code review
Activity
admarble commentedon May 9, 2026
→ PROCEED — 5 explicit ACs; scoped exploitability triage with documented resolution options
Workflow:
spec → exec → qa· 5 ACsCommand:
Flags:
-q— multi-package exploitability assessment + per-cluster decisions across two advisory chainsNotes:
package.json/lockfile — no overlap.admarble commentedon May 9, 2026
Plan (Spec)
5 ACs · Standard tier · scope
SCOPE_OK·spec → exec → qa(quality loop on)AC checklist with verification
npm audit fix --dry-runoutput in this issue (no--force).npm auditreports 0 high; remaining moderates either ≤ prior count or covered by a waiver in this issue.build (20.x),build (22.x),typecheck,validate-skills,validate-plugin.Exploitability snapshot (pre-confirmed during /spec)
fast-uri(high)@modelcontextprotocol/sdk → ajv → fast-uriip-address(mod)@modelcontextprotocol/sdk → express-rate-limit → ip-addressAddress6HTML methods;express-rate-limituses ip-address for comparison only.express-rate-limit(mod)@modelcontextprotocol/sdk → express-rate-limitip-address.@anthropic-ai/sdkmem-tool (mod)@anthropic-ai/claude-agent-sdk → @anthropic-ai/sdkgrep -r memoryTool src/→ 0 hits). Onlyquery()is consumed bysrc/lib/workflow/drivers/claude-code.ts.@anthropic-ai/claude-agent-sdk(mod)Implementation plan
npm audit --json+npm audit fix --dry-run; paste both into this issue. Reconfirm exploitability (re-grepsrc/).fast-uri/ip-address/express-rate-limit) — Option A:npm audit fix. Dry-run shows clean semver bumps:ip-address 10.1.0 → 10.2.0fast-uri 3.1.0 → 3.1.2express-rate-limit 8.3.2 → 8.5.1Watchpoint: dry-run also lists ~61 "added" entries — most are platform-binary
optionalDependenciesfor@esbuild/*,@rolldown/binding-*,lightningcss-*,@anthropic-ai/claude-agent-sdk-*. Verify these are lockfile metadata only; if not, fall back to surgical per-package bumps.@anthropic-ai/sdkchain has no auto-fix path:@anthropic-ai/[email protected]still pins@anthropic-ai/[email protected](vuln range0.79.0–0.91.0). Recommend Option B (wait for upstream agent-sdk release) since memory-tool is unused. Avoidsoverridesdebt.Key decisions
fast-uriis high (CVSS 7.5); dry-run is clean; remediation is cheap.overrideswould be reversed when upstream lands.overrides) for both clusters unless dry-run turns out unsafe.Open questions for exec
npm audit fixvs surgical per-package bumps — start with the former; downgrade if lockfile churn is non-binary-metadata.Non-goals (from issue body)
npm audit fix --forcemajor bumps.[email protected]Node-23 EBADENGINE — local-environment issue, not a repo change.admarble commentedon May 9, 2026
Progress Update —
/execcompletePR opened: #615 · branch
feature/614-resolve-npm-audit-findings-5-4-moderate-1-highAC-1 —
npm audit fix --dry-run(recorded)Watchpoint resolved: the 61 "added" entries are platform-binary
optionalDependenciesmetadata for@esbuild/*,@rolldown/binding-*,lightningcss-*,@anthropic-ai/claude-agent-sdk-*— confirmed by post-fixaudited 356 packages(only 3 actually changed). Lockfile diff is 10 insertions / 10 deletions (clean per-package version bumps).AC-2 — Exploitability assessment (reconfirmed during exec)
fast-uri(path traversal + host confusion)@modelcontextprotocol/sdk → ajv → fast-urigrep -r 'fast-uri' src/→ 0 hits; ajv URI-format validator only; no untrusted URIs parsed in author-defined tool schemasip-address(XSS inAddress6HTML methods)@modelcontextprotocol/sdk → express-rate-limit → ip-addressgrep -r 'ip-address' src/→ 0 hits;express-rate-limituses ip-address for comparison only, never HTML emissionexpress-rate-limit(transitive)@modelcontextprotocol/sdk → express-rate-limitip-address; same conclusion@anthropic-ai/sdk(insecure default file perms in memory tool)@anthropic-ai/claude-agent-sdk → @anthropic-ai/sdkgrep -r 'memoryTool|MemoryTool|memory_tool' src/→ 0 hits; onlyquery()is consumed (src/lib/workflow/drivers/claude-code.ts)@anthropic-ai/claude-agent-sdk(transitive)AC-3 — Resolution path per cluster
fast-uri/ip-address/express-rate-limitnpm audit fixfast-uriis high (CVSS 7.5); dry-run produces clean semver bumps; remediation cost = lockfile-only@anthropic-ai/sdkchain@anthropic-ai/[email protected]still pins@anthropic-ai/[email protected](vuln range0.79.0–0.91.0);overrideswould be reversed when upstream lands → Option C rejectedAC-4 — Post-fix audit & waiver
@anthropic-ai/sdk+@anthropic-ai/claude-agent-sdk)src/; documented in CHANGELOG### Securityentry on this PR; tracked here for the next agent-sdk release. If Cluster 2 isn't auto-resolved by Dependabot within ~2 weeks, file a follow-up to revisit (overrides last-resort).AC-5 — CI
Local pre-PR gates pass; awaiting GitHub Actions for
build (20.x),build (22.x),typecheck,validate-skills,validate-plugin. Will track on #615.Files changed
package-lock.json— 10 insertions / 10 deletions (3 package version bumps)CHANGELOG.md— new### Securityentry under[Unreleased]Local gates (all green)
npm run buildnpm run lintnpm testnpm auditPre-PR Confidence Check
@anthropic-ai/claude-agent-sdkcutting a release that picks up@anthropic-ai/sdk@>=0.91.1. If that drags out, the moderate stays open. Mitigated: memory tool genuinely isn't reachable from this repo — re-grep is reproducible.Quality Plan Alignment
N/A — no Feature Quality Planning section in
/speccomment for this issue (security/dep-bump scope; spec covered exploitability + resolution-path decisions directly).admarble commentedon May 9, 2026
QA Review for Issue #614 (Simple Fix)
Size Gate
package.jsonchangedAC Coverage
npm audit fix --dry-runoutput reviewed and recorded/execcomment (3 version-bump lines + 5-vuln pre-fix summary)./exec; reconfirmed locally —grep -rE 'memoryTool|MemoryTool|memory_tool' src/→ 0 hits,grep -rE 'fast-uri|ip-address' src/→ 0 hits.npm audit fix, applied); Cluster 2 → Option B (wait for upstream agent-sdk, with rationale rejectingoverrides).npm audit: 0 high; remaining moderates ≤ prior or waived{ moderate: 2, high: 0, total: 2 }(was 1 high + 4 moderate). Both remaining moderates are the Cluster 2 chain; waiver documented in CHANGELOG### Securityentry.build (20.x),build (22.x),typecheck,validate-skills,validate-plugintypecheck,validate-skills,validate-plugin); 2/5 IN_PROGRESS (build (20.x),build (22.x)). No failures.Coverage: 4/5 MET, 1/5 PENDING (awaiting build matrix completion).
Quality Metrics
any)Code Review
Strengths:
package.jsonedit, nooverridesdebt. Diff is exactly the 3 transitive bumps the dry-run advertised — no incidental churn.memoryToolnot used insrc/) and a specific upstream signal (@anthropic-ai/[email protected]still pins@anthropic-ai/[email protected], vuln range0.79.0–0.91.0), not a hand-wave.### Securityincludes the issue reference(#614), names the three packages with old/new versions, cites the vulnerable range, and explicitly justifies Option B overpackage.jsonoverrides.Issues:
Suggestions:
agent-sdkbump in ~2 weeks (the exec comment mentions this; an actual issue would survive comment archeology). Non-blocking.Test Coverage Analysis
package-lock.jsonCHANGELOG.mdCoverage: N/A — no source files changed; existing 2943-test suite passing post-bump (recorded in exec comment) is the relevant regression check.
Anti-Pattern Detection
No source files changed. Lockfile diff contains only the three expected version/integrity/dep-range updates (verified by reading the diff). No incidental package additions despite the dry-run's "61 added" line — confirmed by post-fix
audited 356 packages(only 3 actually changed; the 61 wereoptionalDependenciesmetadata for platform binaries).CI Status
typecheckvalidate-skillsvalidate-pluginbuild (20.x)build (22.x)CI Summary: 3 passed, 2 pending, 0 failed.
Markdown-only relaxation: Not applicable — diff includes
package-lock.json(denylisted). Build matrix pending checks gate normally.CHANGELOG Verification
CHANGELOG.mdexistsfix:commit +### Securitysection)[Unreleased]entry### SecurityheadingResolve), issue ref(#614), names packages and versionsRisk Assessment
Address6HTML methods,fast-uriparsing of untrusted URIs, or the@anthropic-ai/sdkLocal Filesystem Memory Tool would invalidate the Cluster 2 waiver's "not exploitable here" premise. The grep-based evidence is reproducible but assumes the search terms cover all reachability paths (it does for current usage).Verdict: NEEDS_VERIFICATION
Cluster 1 remediation is correct and complete; Cluster 2 waiver is well-justified with reproducible evidence; CHANGELOG documents the security change with issue reference. AC-1 through AC-4 are MET. AC-5 is PENDING solely because
build (20.x)andbuild (22.x)are still IN_PROGRESS — no failures, just not yet completed. Re-run/qa 614once the build matrix lands, or merge once both report SUCCESS.Documentation
Next Steps
build (20.x)andbuild (22.x)to complete on PR fix(#614): resolve npm audit findings (cluster 1; cluster 2 waived) #615.READY_FOR_MERGEand proceed to merge./qaafter any remediation.@anthropic-ai/claude-agent-sdkbump within ~2 weeks.admarble commentedon May 9, 2026
QA Review for Issue #614 (Re-run — CI verification)
Why re-run: Prior QA verdict was
NEEDS_VERIFICATIONsolely becausebuild (20.x)andbuild (22.x)wereIN_PROGRESS. All 5 CI checks now reportSUCCESS. HEAD SHA unchanged (7e33130), so this is an incremental re-evaluation of AC-5 + final verdict.Incremental QA Summary
Last QA: 2026-05-09T16:30:00Z (commit:
7e33130) · Changes since last QA: 0 filesSummary: 4 AC cached, 1 re-evaluated, 4 checks always-fresh
Stale Branch Check
AC Coverage
npm audit fix --dry-runoutput reviewed and recorded/execcomment (3 version-bump lines + 5-vuln pre-fix summary)./exec; reconfirmed live in worktree —grep -rEn 'memoryTool|MemoryTool|memory_tool|memory-tool' src/ bin/ scripts/→ 0 hits; no direct@anthropic-ai/sdkimports; no ajvformat: "uri"usage; no directfast-uri/ip-addressreferences.npm audit fix, applied); Cluster 2 → Option B (wait for upstream agent-sdk) with rationale rejectingoverrides.npm audit≤ prior moderate count or waivernpm auditin worktree:{ moderate: 2, high: 0, total: 2 }(was 1 high + 4 moderate). Both remaining moderates are the Cluster 2 chain (@anthropic-ai/sdk,@anthropic-ai/claude-agent-sdk); waiver documented in CHANGELOG### Securityentry on this PR.build (20.x),build (22.x),typecheck,validate-skills,validate-pluginSUCCESSon PR #615.Coverage: 5/5 MET.
CI Status
build (20.x)build (22.x)typecheckvalidate-skillsvalidate-pluginCI Summary: 5 passed, 0 pending, 0 failed.
Quality Metrics
any)Code Review
Strengths:
package.jsonedit, nooverridesdebt. Lockfile diff is exactly the 3 transitive bumps (fast-uri 3.1.0→3.1.2,ip-address 10.1.0→10.2.0,express-rate-limit 8.3.2→8.5.1) — no incidental churn.memoryTool/@anthropic-ai/sdk/fast-uri/ip-addressdirect usage.@anthropic-ai/[email protected](latest) pins^0.81.0of@anthropic-ai/sdk, and the vuln range is>=0.79.0 <0.91.1, so semver-major can't escape the vulnerable range — must wait for upstream to bump its dep range. Override would be reverted on the next Dependabot pass.### Securitywith(#614), all three package old/new versions, vulnerable range, and explicit Option B rationale.Issues:
Suggestions (non-blocking):
@anthropic-ai/claude-agent-sdkbump within ~2 weeks. Comment-archeology works but a tracker issue survives better.Test Coverage Analysis
package-lock.jsonCHANGELOG.mdNo source files changed; existing 2943-test suite passing post-bump (recorded in
/execcomment) is the relevant regression check.Anti-Pattern Detection
Dependency Audit
N/A —
package.jsonnot modified; only transitive bumps inpackage-lock.json. Three bumped packages are well-maintained, high-traffic, MIT-licensed.Code Patterns
N/A — no source files changed.
CHANGELOG Verification
CHANGELOG.mdexistsfix:commit +### Securitysection)[Unreleased]entry### SecurityheadingResolve),(#614)ref, names packages and versionsSkill Command Verification
N/A — no
.claude/skills/**/*.mdfiles modified.CLI Registration Verification
N/A —
RunOptionsandbin/cli.tsnot modified.Execution Evidence
N/A — no
scripts/or CLI files modified.Smoke Test
Not Required — lockfile-only change with no workflow-affecting code.
Self-Evaluation
npm auditreports0 high / 2 moderate(Cluster 2 only); confirmedgh pr view 615 --json statusCheckRollupreports all 5 SUCCESS./execrecorded.Address6HTML methods,fast-uriparsing of untrusted URIs, or the@anthropic-ai/sdkLocal Filesystem Memory Tool would invalidate the Cluster 2 waiver's "not exploitable here" premise. Mitigated by reproducible grep evidence; would be re-evaluated on any source change touching@anthropic-ai/*or MCP request handling.mergeable-eligible (lockfile-only, no conflicts).Verdict: READY_FOR_MERGE
All 5 ACs MET. Cluster 1 remediation is a clean lockfile-only diff matching the dry-run; Cluster 2 waiver is grounded in reproducible grep evidence + an upstream pin trap that makes
overridesstrictly worse than waiting. CI fully green. Optional Cluster 2 follow-up tracking issue is non-blocking and called out for post-merge.Documentation
(#614)reference)Next Steps
admarble commentedon May 9, 2026
Cluster 2 follow-up tracker filed: #619 (target recheck 2026-05-23). Closes the QA's optional-but-explicit gap so the waiver doesn't survive on comment archeology alone.
fix(#614): resolve npm audit cluster 1 (fast-uri/ip-address/express-r…
fix(#619): resolve @anthropic-ai/sdk advisory — bump claude-agent-sdk…
fix(#614): resolve npm audit cluster 1 (fast-uri/ip-address/express-r…
fix(#619): bump @anthropic-ai/claude-agent-sdk → 0.3.144, resolves SD…