{"id":"CVE-2026-40190","published":"2026-04-10T19:47:57Z","modified":"2026-04-13T16:13:45Z","title":"LangSmith Client SDKs has Prototype Pollution in langsmith-sdk via Incomplete `__proto__` Guard in Internal lodash…","vendor":"langchain-ai","product":"langsmith-sdk","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.6,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00325,"percentile":0.26214,"provenance":"source"},"cwes":[{"id":"CWE-1321","name":"Improperly Controlled Modification of Object Prototype Attributes"}],"references":[{"url":"https://github.com/langchain-ai/langsmith-sdk/security/advisories/GHSA-fw9q-39r9-c252","tags":["x_refsource_CONFIRM"]}],"priority":{"score":9.2,"factors":[{"name":"EPSS percentile","points":5.24},{"name":"CVSS severity","points":3.92}]},"vendorSlug":"langchain-ai","affectedVersions":[{"vendor":"langchain-ai","product":"langsmith-sdk","versions":["< 0.5.18"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-13T16:13:33.168377Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"langsmith","vulnerableRanges":["<0.5.18"],"patched":["0.5.18"],"from":["GHSA-fw9q-39r9-c252"],"provenance":"source"}],"summary":{"text":"The langsmith JavaScript/TypeScript SDK in the langsmith-sdk product (langchain-ai) contains an incomplete prototype pollution fix in its internally vendored lodash set() utility, where the baseAssignValue() guard blocks only the __proto__ key and not traversal via constructor.prototype. An attacker who controls keys in data processed by the createAnonymizer() API can pollute Object.prototype over the network without authentication or user interaction, though exploitation is noted as high complexity, and the pollution then affects all objects in the Node.js process.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:10:06Z"},"euvd":{"id":"EUVD-2026-21594","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-25528","published":"2026-02-09","fixed":"0.4.6","kev":false},{"cve":"CVE-2026-40190","published":"2026-04-10","fixed":"0.5.18","kev":false},{"cve":"CVE-2026-41182","published":"2026-04-23","fixed":"0.5.19","kev":false,"link":{"from":"CVE-2026-40190","to":"CVE-2026-41182","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:langsmith","fromFixed":"0.5.18","toFixed":"0.5.19","daysApart":13}]}},{"cve":"CVE-2026-45134","published":"2026-05-27","fixed":"0.6.0","kev":false}],"package":"npm:langsmith"}}