CVE-2026-40190: langchain-ai langsmith-sdk Prototype Pollution
Vulnerability summary
CVE-2026-40190 is a critical (CVSS 9.8) Prototype Pollution vulnerability in langchain-ai langsmith-sdk. EPSS estimates a 0.39% chance of exploitation in the next 30 days, higher than 31.1% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 1 · Related 2Timeline
- 10-04-2026PublishedVulnerability first disclosed.
- 13-04-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- CVE.orgCNA5.6MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:LDiffers
- OSV · WolfiEcosystem advisory · calculated5.6MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:LDiffers
- OSV · NpmEcosystem advisory · calculated5.6MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:LDiffers
- OSV · ChainguardEcosystem advisory · calculated5.6MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:LDiffers
EPSS trend
Probability
0.39%
Chance of exploitation in the next 30 days
Percentile
31%
Versus all other CVEs
30-day change
+0.07 pp
From 0.31% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundLangsmith Sdk
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Chainguard26 products
- kibana-8.17< 8.17.10-r17
- kibana-8.17-bitnami< 8.17.10-r17
- kibana-8.17-iamguarded< 8.17.10-r17
- kibana-8.18All versions (No fix recorded)
- kibana-8.18-bitnamiAll versions (No fix recorded)
Wolfi2 products
- langfuse-3< 3.164.0-r6
- langfuse-3-worker< 3.164.0-r6
Langchain1 product
- langsmith< 0.5.18
Langchain-ai1 product
- langsmith-sdk< 0.5.18
Npm1 product
- langsmith< 0.5.18
5 vendors · 31 products
References
5 links- github.com/langchain-ai/langsmith-sdk/security/advisories/GHSA-fw9q-39r9-c252X Refsource CONFIRMWEBExploitVendor AdvisoryMitigation