9.8

CVE-2026-40190: langchain-ai langsmith-sdk Prototype Pollution

CVSS: 9.8v3.1CriticalAnalyzed
AliasesCGA-3mfp-3xjg-6c25CGA-565x-9rj5-rhj8CGA-567c-mh56-fcj3
Published 10-04-2026Last modified 13-04-2026

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.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
0.39%
0%100%
Low · +0.07 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 1 · Related 2

Timeline

  1. 10-04-2026
    PublishedVulnerability first disclosed.
  2. 13-04-2026
    Last 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

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

19-09-202619-10-2026
EPSS score
0.39%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • githubUnverified

    Langsmith Sdk

    Maturity: poc

Weaknesses

CWE · root cause

Affected 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
Langchain-ai1 product
Npm1 product
  • langsmith< 0.5.18

5 vendors · 31 products

References

5 links