Skip to content

CVE-2026-40190 LangSmith Client SDKs has Prototype Pollution in langsmith-sdk via Incomplete `__proto__` Guard in Internal lodash `set()`

CriticalCVSS 9.8 EPSS 0.33%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial

Description

LangSmith Client SDKs provide SDK's for interacting with the LangSmith platform. Prior to 0.5.18, the LangSmith JavaScript/TypeScript SDK (langsmith) contains an incomplete prototype pollution fix in its internally vendored lodash set() utility. The baseAssignValue() function only guards against the proto key, but fails to prevent traversal via constructor.prototype. This allows an attacker who controls keys in data processed by the createAnonymizer() API to pollute Object.prototype, affecting all objects in the Node.js process. This vulnerability is fixed in 0.5.18.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
@langchain langsmith < 0.5.18 0.5.18 Fixed
npm langsmith(npm) < 0.5.18; <= 0.5.17 0.5.18 Fixed
langchain-ai langsmith-sdk = < 0.5.18 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
langchain-ai langsmith-sdk = < 0.5.18 No fix listed
npm langsmith(npm) <= 0.5.17 No fix listed
@langchain langsmith < 0.5.18 0.5.18
npm langsmith(npm) < 0.5.18 0.5.18

References