๐Ÿ” CVE Alert

CVE-2026-40190

MEDIUM 5.6

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

CVSS Score
5.6
EPSS Score
0.0%
EPSS Percentile
12th

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.

CWE CWE-1321
Vendor langchain-ai
Product langsmith-sdk
Published Apr 10, 2026
Last Updated Apr 13, 2026
Stay Ahead of the Next One

Get instant alerts for langchain-ai langsmith-sdk

Be the first to know when new medium vulnerabilities affecting langchain-ai langsmith-sdk are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low

Affected Versions

langchain-ai / langsmith-sdk
< 0.5.18

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/langchain-ai/langsmith-sdk/security/advisories/GHSA-fw9q-39r9-c252