Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. langsmith
  4. ›
  5. CVE-2026-40190

CVE-2026-40190: LangSmith Client SDKs has Prototype Pollution in langsmith-sdk via Incomplete `__proto__` Guard in Internal lodash `set()`

April 10, 2026

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.


References

  • github.com/advisories/GHSA-fw9q-39r9-c252
  • github.com/langchain-ai/langsmith-sdk
  • github.com/langchain-ai/langsmith-sdk/commit/31d3c3aec02892f4312baae112f817d6b2f0ebe3
  • github.com/langchain-ai/langsmith-sdk/pull/2690
  • github.com/langchain-ai/langsmith-sdk/security/advisories/GHSA-fw9q-39r9-c252
  • nvd.nist.gov/vuln/detail/CVE-2026-40190

Code Behaviors & Features

Detect and mitigate CVE-2026-40190 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.5.18

Fixed versions

  • 0.5.18

Solution

Upgrade to version 0.5.18 or above.

Impact 5.6 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Source file

npm/langsmith/CVE-2026-40190.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:20:08 +0000.