Vulnerability
CVE-2025-68665
LangChain is a framework for building LLM-powered applications. Prior to @langchain/core versions 0.3.80 and 1.1.8, and prior to langchain versions 0.3.37 and 1.2.3, a serialization injection vulnerability exists in LangChain JS's toJSON() method (and subsequently when string-ifying objects using JSON.stringify(). The method did not escape objects with 'lc' keys when serializing free-form data in kwargs. The 'lc' key is used internally by LangChain to mark serialized objects. When user-controlled data contains this key structure, it is treated as a legitimate LangChain object during deserialization rather than plain user data. This issue has been patched in @langchain/core versions 0.3.80 and 1.1.8, and langchain versions 0.3.37 and 1.2.3
111 advisories report this vulnerability, across 2 ecosystems.
Advisories
- CGA-223r-3rg6-9vf9
- CGA-25rm-rxq9-42fc
- CGA-278c-8356-3cfq
- CGA-2x8j-qj4h-cv5g
- CGA-3557-q6m3-xc2h
- CGA-3c65-2xx7-wrvr
- CGA-3hwp-2334-qqjx
- CGA-3jjc-fcx3-ww8x
- CGA-3m85-mppg-6f5p
- CGA-3qcw-86mj-cj57
- CGA-3whc-7qp7-q4h9
- CGA-3x46-j668-9ff9
- CGA-3xvx-gv5m-f855
- CGA-444w-hhrx-54fw
- CGA-49hj-phr4-j8f8
- CGA-4c6v-wpv8-4wc9
- CGA-4g3w-p3jc-x69v
- CGA-4m2j-jcg6-9wj4
- CGA-4m34-r5q5-p8vx
- CGA-52qv-7p95-63qv
- CGA-5g98-7wx4-jfxr
- CGA-5jg8-gfq6-8q3g
- CGA-5mx3-qxg4-78cr
- CGA-5vp9-hqhg-qxg6
- CGA-62cx-m75f-72fw
- CGA-638p-hw6x-g4gf
- CGA-697q-6v32-8pp2
- CGA-6p8q-46wh-j7wf
- CGA-759r-6vf3-w9g3
- CGA-75r6-8qv8-3c46
- CGA-79j5-m3xj-rwr2
- CGA-79x7-g7h4-v75w
- CGA-7fgh-hghj-vvq7
- CGA-7frr-465c-4hxm
- CGA-7g8p-5j72-pc58
- CGA-894r-xfqp-ghmm
- CGA-8wxf-m256-2h77
- CGA-8x4c-92wr-2gcf
- CGA-93c9-7vvc-8p7j
- CGA-9f6w-pvpr-3m44
- CGA-9p8q-74w2-3v78
- CGA-c3pp-wjfc-cg3j
- CGA-c5j8-8mmv-v6x7
- CGA-c6w2-p6cj-7jpf
- CGA-ccv3-ph4j-8qxw
- CGA-cgvx-cr2w-2923
- CGA-cwmx-8v35-v642
- CGA-f3q9-c6hc-g3wv
- CGA-f4v7-ppm8-9rxj
- CGA-f6fp-55mw-2wm9
- CGA-f863-fc5f-hfmr
- CGA-f9w7-jgw3-f843
- CGA-g3qx-9xr2-g9f4
- CGA-g7x2-557f-qx5p
- CGA-ggx3-39f5-cpx8
- CGA-gh4g-7c26-vx45
- CGA-gv74-3x2v-67g9
- CGA-h8px-pm69-x4m7
- CGA-h99j-4j97-v64f
- CGA-hc2g-gvqp-xh59
- CGA-hfg8-m89c-9xwh
- CGA-hgm2-574w-h286
- CGA-hm4q-3m75-wj2c
- CGA-hp2v-j23r-39jj
- CGA-hr4g-368g-gh5j
- CGA-hrwp-gqqg-qcxj
- CGA-hxxf-3rvh-hq9j
- CGA-j4w2-f8g5-xxcc
- CGA-j56c-wh8g-5qhj
- CGA-j8pq-m2gx-h8jx
- CGA-jcp6-fc6f-vprq
- CGA-jh7f-74g7-hcc4
- CGA-jq9m-mr6q-c7wv
- CGA-jwpg-crpv-8cwf
- CGA-jx88-mvx2-4w4q
- CGA-m75p-ffgm-fwq4
- CGA-m79j-fr6p-fh9q
- CGA-mh4f-vwxr-wmwf
- CGA-p3xq-62g8-mvg9
- CGA-p65v-8rp4-hcwv
- CGA-p6gf-hp8v-wpgg
- CGA-p6vg-p2qc-p4jm
- CGA-pcj4-mh6h-898q
- CGA-pmw9-96jx-62vm
- CGA-pvr5-g5p7-c88r
- CGA-pvr9-7jf3-qw28
- CGA-qf8g-5jf8-5w37
- CGA-qg52-xf64-vfhw
- CGA-qw43-74cf-jcqp
- CGA-qx4m-f5cc-725h
- CGA-qxx9-gqf3-f8f6
- CGA-r3c2-hpxw-94f2
- CGA-r5j5-pqj2-hxg7
- CGA-r6q6-8qgh-mcqq
- CGA-r6r7-gv5g-8v8x
- CGA-rvx4-7fj3-47r9
- CGA-rw8g-9hrc-qm3g
- CGA-v4gh-pw5q-c6hc
- CGA-v4jx-cfm6-7fr8
- CGA-vjg8-jgc4-h29x
Showing the first 100. The API lists them all: /api/v1/vulnerabilities/CVE-2025-68665.
References
- https://github.com/langchain-ai/langchainjs/commit/e5063f9c6e9989ea067dfdff39262b9e7b6aba62
- https://github.com/langchain-ai/langchainjs/releases/tag/%40langchain%2Fcore%401.1.8
- https://github.com/langchain-ai/langchainjs/releases/tag/langchain%401.2.3
- https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-r399-636x-v7f6