{"answers":{"affected":"2 open source packages ship an affected version, including @anthropic-ai/sdk. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-34451 in the wild and no public exploit code.","fix":"Upgrade @anthropic-ai/sdk to 0.81.0 or later.","what":"CVE-2026-34451 is a medium-severity path traversal vulnerability in anthropics anthropic-sdk-typescript, published on 31 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-34451 and fix it if it is affected.\n\nWhat it is: CVE-2026-34451 is a medium-severity path traversal vulnerability in anthropics anthropic-sdk-typescript, published on 31 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-34451 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @anthropic-ai/sdk (npm): affected from 0.79.0; fixed in 0.81.0\n- @anthropic-ai/sdk (npm): affected from 0.79.0; fixed in 0.81.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-34451/ (Markdown: https://insights.sbomify.com/CVE-2026-34451/index.md)","id":"CVE-2026-34451","markdown":"https://insights.sbomify.com/CVE-2026-34451/index.md","name":"CVE-2026-34451","record":{"aliases":["GHSA-5474-4w2j-mq4c","MINI-c7c2-44rc-8m8g"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"TypeScript SDK","requires_auth":"none","summary":"Prompt injection allows attackers to escape the memory tool sandbox and read or write files in sibling directories via flawed path validation.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"claude_sdk_for_typescript","vendor":"anthropic"}],"cvss":{"score":6.3,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-41","name":"Improper Resolution of Path Equivalence"},{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Claude SDK for TypeScript provides access to the Claude API from server-side TypeScript or JavaScript applications. From version 0.79.0 to before version 0.81.0, the local filesystem memory tool in the Anthropic TypeScript SDK validated model-supplied paths using a string prefix check that did not append a trailing path separator. A model steered by prompt injection could supply a crafted path that resolved to a sibling directory sharing the memory root's name as a prefix, allowing reads and writes outside the sandboxed memory directory. This issue has been patched in version 0.81.0.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Claude SDK for TypeScript: Memory Tool Path Validation Allows Sandbox Escape to Sibling Directories","id":"CVE-2026-34451","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"Claude SDK for Python: Memory Tool Path Validation Race Condition Allows Sandbox Escape","id":"CVE-2026-34452"},"packages":[{"ecosystem":"npm","fixed":["0.81.0"],"introduced":["0.79.0"],"last_affected":[],"package":"@anthropic-ai/sdk","purl":null,"source":"GHSA-5474-4w2j-mq4c"},{"ecosystem":"npm","fixed":["0.81.0"],"introduced":["0.79.0"],"last_affected":[],"package":"@anthropic-ai/sdk","purl":"pkg:npm/%40anthropic-ai/sdk","source":"GHSA-5474-4w2j-mq4c"}],"prev":{"headline":"Claude SDK for Python: Insecure Default File Permissions in Local Filesystem Memory Tool","id":"CVE-2026-34450"},"products":["anthropic-sdk-typescript"],"published":"2026-03-31","related":[{"cvss_score":4.8,"headline":"Claude SDK for TypeScript has Insecure Default File Permissions in Local Filesystem Memory Tool","id":"CVE-2026-41686","kev_date_added":null,"published":"2026-05-04"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-01","vendors":["anthropics"]},"summary":"Prompt injection allows attackers to escape the memory tool sandbox and read or write files in sibling directories via flawed path validation.","url":"https://insights.sbomify.com/CVE-2026-34451/"}