9.8

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

Analyzed
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) vulnerability in langchain-ai langsmith-sdk. EPSS estimates a 0.33% chance of exploitation in the next 30 days, higher than 28.4% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 5.6, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
0.33%
0%100%
Low · +0.02 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware 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.33%

Chance of exploitation in the next 30 days

Percentile

28%

Versus all other CVEs

30-day change

Increase +0.02 pp

From 0.31% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Langsmith Sdk

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

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