Critical severity · published Apr 10, 2026
CVE-2026-40190
LangSmith Client SDKs has Prototype Pollution in langsmith-sdk via Incomplete `__proto__` Guard in Internal lodash `set()`
9.8
CVSS
0.3%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 24% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
LA
langsmith-sdk · langchain-ai
< 0.5.18 · source: vendor
LA
Langsmith · Langchain
before 0.5.18 · source: NVD
Affected product
LA
langsmith-sdk
langchain-ai
More from langsmith-sdk
7.1
CVE-2026-45134
LangSmith Client SDK: Public prompt pull deserializes untrusted manifests without trust boundary warning
5.8
CVE-2026-25528
LangSmith Client SDK Affected by Server-Side Request Forgery via Tracing Header Injection
5.3
CVE-2026-41182
LangSmith SDK: Streaming token events bypass output redaction
5.0
CVE-2026-59152
Arbitrary server-side file read in LangSmith SDK TracingMiddleware