CVE-2026-40190: LangSmith langsmith - Prototype Pollution
- Cve: CVE-2026-40190
- Name: LangSmith langsmith - Prototype Pollution
- 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.
- Impact: Attackers can pollute Object.prototype, potentially causing denial of service or privilege escalation in the Node.js process.
- Remediation: Update to version 0.5.18 or later.
- Vulnerability type: prototype_pollution
- Vulnerability impact: privilege_escalation, denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00325
- Epss percentile: 0.26018
- Assignee: [email protected]
- Published at: 2026-04-10T20:16:24Z
- Age in days: 228
- Modified at: 2026-10-26T21:10:00Z
- Patch available: yes
- Public exploits total: 1
- References total: 1
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-40190
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-1321 | Improperly Controlled Modification of Object Prototype Attributes |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/langchain-ai/langsmith-sdk/security/advisories/GHSA-fw9q-39r9-c252 | nvd | 2026-04-10 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/langchain-ai/langsmith-sdk/security/advisories/GHSA-fw9q-39r9-c252 | nvd | Exploit, Vendor Advisory, Mitigation |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| langchain:langsmith | < 0.5.18 | no | nvd | /v1/products/langchain/langsmith |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| langchain-ai/langsmith-sdk | commit, package, pull, security_advisory | yes | /v1/repositories/langchain-ai/langsmith-sdk |
Index
- Repositories: 105
- Repositories high signal: 65
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-04-10
- Remote: yes
- Exposed hosts: 122
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports