Prototype Pollution Vulnerability in LangSmith JavaScript/TypeScript SDK
CVE-2026-40190

5.6MEDIUM

Key Information:

Vendor
CVE Published:
10 April 2026

What is CVE-2026-40190?

The LangSmith JavaScript/TypeScript SDK, prior to version 0.5.18, has a vulnerability where its lodash utility function set() allows for incomplete protection against prototype pollution. Specifically, the baseAssignValue() function only restricts access to the proto key but does not prevent exploitation through constructor.prototype. An attacker can exploit this issue by manipulating keys in data processed by the createAnonymizer() API, resulting in pollution of Object.prototype and affecting all objects within the Node.js process. This security flaw has been addressed in SDK version 0.5.18.

Affected Version(s)

langsmith-sdk < 0.5.18

References

CVSS V3.1

Score:
5.6
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
Low
Availability:
Low
Attack Vector:
Network
Attack Complexity:
High
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.