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.
Published: 2026-04-10
Score: 5.6 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Prototype Pollution
Action: Apply Patch
AI Analysis

Impact

The langsmith-sdk for JavaScript/TypeScript contains an incomplete prototype‑pollution guard in its vendored lodash set() utility. The baseAssignValue() function only blocks the __proto__ key, but it does not prevent assignments to constructor.prototype. When attacker‑controlled data passes through the createAnonymizer() API, a key referencing constructor.prototype can modify Object.prototype, thereby affecting every object in the Node.js process. This flaw can alter application behavior, trigger logic errors, or enable the insertion of unintended properties.

Affected Systems

The vulnerability exists in the langchain‑ai:langsmith-sdk package for all releases prior to 0.5.18. Any Node.js application that imports that version and uses createAnonymizer() with data that may come from an external or untrusted source is affected. Versions 0.5.18 and newer incorporate the necessary fix.

Risk and Exploitability

The CVSS score of 5.6 indicates medium severity. Although the EPSS score is not available and the vulnerability is not listed in the CISA KEV catalog, the risk remains significant because exploitation requires control over data delivered to createAnonymizer(). This is an inference based on the description. If an attacker can supply such data, they can alter Object.prototype and potentially manipulate application logic or data, making the impact potentially far‑reaching within the affected process.

Generated by OpenCVE AI on April 10, 2026 at 22:21 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the langsmith-sdk package to 0.5.18 or later.
  • If an immediate upgrade is not possible, validate or sanitize all keys and values passed to createAnonymizer() to prevent prototype pollution.

Generated by OpenCVE AI on April 10, 2026 at 22:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-fw9q-39r9-c252 LangSmith Client SDKs has Prototype Pollution in langsmith-sdk via Incomplete `__proto__` Guard in Internal lodash `set()`
History

Mon, 13 Apr 2026 17:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 13 Apr 2026 13:00:00 +0000

Type Values Removed Values Added
First Time appeared Langchain-ai
Langchain-ai langsmith-sdk
Vendors & Products Langchain-ai
Langchain-ai langsmith-sdk

Fri, 10 Apr 2026 20:00:00 +0000

Type Values Removed Values Added
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.
Title LangSmith Client SDKs has Prototype Pollution in langsmith-sdk via Incomplete `__proto__` Guard in Internal lodash `set()`
Weaknesses CWE-1321
References
Metrics cvssV3_1

{'score': 5.6, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L'}


Subscriptions

Langchain-ai Langsmith-sdk
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-04-13T16:13:45.532Z

Reserved: 2026-04-09T20:59:17.620Z

Link: CVE-2026-40190

cve-icon Vulnrichment

Updated: 2026-04-13T16:13:41.123Z

cve-icon NVD

Status : Deferred

Published: 2026-04-10T20:16:24.043

Modified: 2026-04-29T20:59:49.037

Link: CVE-2026-40190

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-13T12:57:25Z

Weaknesses