CVE-2026-40190
LangSmith Client SDKs has Prototype Pollution in langsmith-sdk via Incomplete `__proto__` Guard in Internal lodash `set()`
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by GHSA (medium).
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.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| chainguard | kibana-8.17, kibana-8.19, kibana-9.0 and 8 more | 8.17.10-r17 and 10 more |
| echo npm::Echo OSV | langsmith | 0.5.18 |
| minimos | kibana-8.19, kibana-9.3, langfuse-4 and 1 more | 8.19.16-r0 and 3 more |
| npm::GitHub Security Advisory npm | langsmith | 0.5.18 |
| wolfi | langfuse-3 | 3.164.0-r6 |
Show all 18 entries from 5 sources
| Source | Package | Fixed in |
|---|---|---|
| chainguard | kibana-8.17 | 8.17.10-r17 |
| chainguard | kibana-8.19 | 8.19.14-r2 |
| chainguard | kibana-9.0 | 9.0.8-r19 |
| chainguard | kibana-9.1 | 9.1.10-r12 |
| chainguard | kibana-9.2 | 9.2.7-r5 |
| chainguard | kibana-9.3 | 9.3.3-r4 |
| chainguard | langfuse-2 | 2.95.12-r19 |
| chainguard | langfuse-3 | 3.164.0-r6 |
| chainguard | langfuse-fips-2 | 2.95.12-r22 |
| chainguard | langfuse-fips-3 | 3.164.0-r3 |
| chainguard | librechat | 0.8.4-r5 |
| echo npm::Echo OSV | langsmith | 0.5.18 |
| minimos | kibana-8.19 | 8.19.16-r0 |
| minimos | kibana-9.3 | 9.3.5-r0 |
| minimos | langfuse-4 | 4.16.0-r0 |
| minimos | trigger-dev | 4.5.0-r0 |
| npm::GitHub Security Advisory npm | langsmith | 0.5.18 |
| wolfi | langfuse-3 | 3.164.0-r6 |
References
- https://advisory.echohq.com/cve/CVE-2026-40190
- https://github.com/advisories/GHSA-fw9q-39r9-c252
- https://github.com/langchain-ai/langsmith-sdk
- https://github.com/langchain-ai/langsmith-sdk/commit/31d3c3aec02892f4312baae112f817d6b2f0ebe3
- https://github.com/langchain-ai/langsmith-sdk/pull/2690
- https://github.com/langchain-ai/langsmith-sdk/security/advisories/GHSA-fw9q-39r9-c252
- https://nvd.nist.gov/vuln/detail/CVE-2026-40190