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

- Severity: Medium 5.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 30% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-10T19:47:57.642Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-fw9q-39r9-c252
- Weaknesses: CWE-1321
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- langchain-ai langsmith-sdk: < 0.5.18
- langsmith (npm): before 0.5.18
- langchain langsmith: before 0.5.18

## Every score

- GitHub_M: CVSS:3.1 5.6 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 5.6 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/langchain-ai/langsmith-sdk/security/advisories/GHSA-fw9q-39r9-c252> (exploit, mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40190> (advisory)
- <https://github.com/langchain-ai/langsmith-sdk/pull/2690> (web)
- <https://github.com/langchain-ai/langsmith-sdk/commit/31d3c3aec02892f4312baae112f817d6b2f0ebe3> (web)
- <https://github.com/langchain-ai/langsmith-sdk> (package)

## Sources

- CVE List: [CVE-2026-40190](https://www.cve.org/CVERecord?id=CVE-2026-40190), CVE Terms of Use, modified 2026-04-13
- GitHub Advisory Database: [GHSA-fw9q-39r9-c252](https://github.com/advisories/GHSA-fw9q-39r9-c252), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-40190](https://nvd.nist.gov/vuln/detail/CVE-2026-40190), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-40190 · Whole record: https://cve.day/CVE-2026-40190.json · Rebuilt by cve.day 2026-11-25T22:59:18.548Z
