Prototype Pollution Vulnerability in LangSmith JavaScript/TypeScript SDK
CVE-2026-40190
5.6MEDIUM
What is CVE-2026-40190?
The LangSmith JavaScript/TypeScript SDK, prior to version 0.5.18, has a vulnerability where its lodash utility function set() allows for incomplete protection against prototype pollution. Specifically, the baseAssignValue() function only restricts access to the proto key but does not prevent exploitation through constructor.prototype. An attacker can exploit this issue by manipulating keys in data processed by the createAnonymizer() API, resulting in pollution of Object.prototype and affecting all objects within the Node.js process. This security flaw has been addressed in SDK version 0.5.18.
Affected Version(s)
langsmith-sdk < 0.5.18
