CVE-2026-40190
Awaiting Analysis
Awaiting Analysis - Queue
Prototype Pollution in LangSmith JavaScript SDK Affects Node.js Objects
Publication date: 2026-04-10
Last updated on: 2026-05-29
Assigner: GitHub, Inc.
Description
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 Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| langsmith | langsmith | 0.5.18 |
| langsmith | langsmith-sdk | to 0.5.18 (exc) |
| langsmith | langsmith-sdk | 0.5.18 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-1321 | The product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype. |