fix: upgrade @anthropic-ai/sdk to 0.81.0 (CVE-2026-34451)#1124
Merged
Conversation
The Anthropic TypeScript SDK versions 0.79.0–0.80.x had a path traversal vulnerability (GHSA-5474-4w2j-mq4c) in the local filesystem memory tool. Add an npm override to pin @anthropic-ai/sdk >= 0.81.0 in the promptfoo eval lockfile. Closes https://github.com/systeminit/swamp/security/dependabot/1 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Code Review
Blocking Issues
None.
Suggestions
None.
Clean security fix — the npm overrides approach correctly pins @anthropic-ai/sdk to 0.81.0 to resolve the path traversal CVE (GHSA-5474-4w2j-mq4c). The package-lock.json and deno.lock changes are consistent with the override. No source code touched, no further review needed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@anthropic-ai/sdkto^0.81.0inevals/promptfoo/package.jsonto fix a medium-severity path traversal vulnerability (GHSA-5474-4w2j-mq4c)package-lock.json— the resolved version moves from 0.80.0 → 0.81.0Test plan
npm installsucceeds with 0 vulnerabilitiesdeno checkpassesCloses https://github.com/systeminit/swamp/security/dependabot/1
🤖 Generated with Claude Code