CVE-2026-40190 in Client products
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, b...
Affects 1 product from 5 vendors. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Client | — | — |
| Javascript | — | — |
| Langchain | Langsmith | < 0.5.18 |
| Lodash | — | — |
| Platform | — | — |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-40190 |
|---|---|
| BreachSpider ID | BS-2026-GLOBAL-233300-M |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2026-04-10 |
| Last modified | 2026-10-26 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-1321: CWE-1321
Related attack patterns (CAPEC)
CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs via CWE-1321
CAPEC-77 Manipulating User-Controlled Variables via CWE-1321
CAPEC-180 Exploiting Incorrectly Configured Access Control Security Levels via CWE-1321
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
The LangSmith JavaScript/TypeScript SDK (langsmith) prior to version 0.5.18 contains an incomplete prototype pollution fix, allowing attackers to manipulate the prototype chain via the constructor.prototype key.
An attacker can exploit the incomplete prototype pollution fix in the baseAssignValue() function by manipulating the constructor.prototype key, leading to potential code execution or unauthorized access.
Questions
What is CVE-2026-40190?
The LangSmith JavaScript/TypeScript SDK (langsmith) prior to version 0.5.18 contains an incomplete prototype pollution fix, allowing attackers to manipulate the prototype chain via the constructor.prototype key.
What is the CVSS score for CVE-2026-40190?
CVE-2026-40190 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 0.4%.
Is CVE-2026-40190 actively exploited?
No confirmed active exploitation of CVE-2026-40190 as of 2026-11-03.
How do I remediate CVE-2026-40190?
Priority: HIGH.
What systems are affected by CVE-2026-40190?
CVE-2026-40190 affects Client; Javascript; Langchain Langsmith; Lodash; Platform.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Client","product":"EDS-518A","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-26.