Vulnerabilities / CVE-2026-40190

critical

CVE-2026-40190

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

Published Modified CWE 1321
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA5.6CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L

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

SourcePackageFixed in
chainguardkibana-8.17, kibana-8.19, kibana-9.0 and 8 more8.17.10-r17 and 10 more
echo npm::Echo OSVlangsmith0.5.18
minimoskibana-8.19, kibana-9.3, langfuse-4 and 1 more8.19.16-r0 and 3 more
npm::GitHub Security Advisory npmlangsmith0.5.18
wolfilangfuse-33.164.0-r6
Show all 18 entries from 5 sources
SourcePackageFixed in
chainguardkibana-8.178.17.10-r17
chainguardkibana-8.198.19.14-r2
chainguardkibana-9.09.0.8-r19
chainguardkibana-9.19.1.10-r12
chainguardkibana-9.29.2.7-r5
chainguardkibana-9.39.3.3-r4
chainguardlangfuse-22.95.12-r19
chainguardlangfuse-33.164.0-r6
chainguardlangfuse-fips-22.95.12-r22
chainguardlangfuse-fips-33.164.0-r3
chainguardlibrechat0.8.4-r5
echo npm::Echo OSVlangsmith0.5.18
minimoskibana-8.198.19.16-r0
minimoskibana-9.39.3.5-r0
minimoslangfuse-44.16.0-r0
minimostrigger-dev4.5.0-r0
npm::GitHub Security Advisory npmlangsmith0.5.18
wolfilangfuse-33.164.0-r6

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.