CVE-2026-40190

CRITICAL CVSS 3.1: 9.8 EPSS 0.33%
Updated Oct 27, 2026
Langchain
Parameter Value
CVSS 9.8 (CRITICAL)
Affected Versions before 0.5.18
Fixed In 0.5.18
Type CWE-1321 (Prototype Pollution)
Vendor Langchain
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v3.1

Weakness Type (CWE)

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Langchain Langsmith
cpe:2.3:a:langchain:langsmith:*:*:*:*:*:node.js:*:*
— 0.5.18