# CVE-2025-68665: LangChain serialization injection vulnerability enables secret extraction

- Priority: **Prioritise**
- Reason: Severe, CVSS 8.6 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2025-12-23 · Modified: 2025-12-24
- Aliases: GHSA-r399-636x-v7f6, 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, CGA-vwwp-2xc4-9fxq, CGA-w3q2-pmmg-2jg6, CGA-w76c-64f9-7p7f, CGA-wmmm-85r8-fvhj, CGA-wq53-wg78-pq4h, CGA-x4jj-mr38-jcrg, CGA-x96q-q5vx-ff9h, CGA-xcg6-6qqr-jr47, CGA-xj8q-cmwm-8p9j, CGA-xvcr-c5w5-g9gh
- Record: https://cvemate.com/vulnerability/CVE-2025-68665 · JSON: https://cvemate.com/vulnerability/CVE-2025-68665/json

## Description

```text
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
```

## Signals

- CVSS: 9.1 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- EPSS: 0.85%, percentile 59.441%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 30)

- chainguard kibana-8.17 (Chainguard): \< 8.17.10-r6
- chainguard kibana-8.17-bitnami (Chainguard): \< 8.17.10-r6
- chainguard kibana-8.17-iamguarded (Chainguard): \< 8.17.10-r6
- chainguard kibana-8.18 (Chainguard): \< 8.18.8-r6
- chainguard kibana-8.18-bitnami (Chainguard): \< 8.18.8-r6
- chainguard kibana-8.18-iamguarded (Chainguard): \< 8.18.8-r6
- chainguard kibana-8.19 (Chainguard): \< 8.19.9-r2
- chainguard kibana-8.19-bitnami (Chainguard): \< 8.19.9-r2
- chainguard kibana-8.19-iamguarded (Chainguard): \< 8.19.9-r2
- chainguard kibana-9.0 (Chainguard): \< 9.0.8-r5
- chainguard kibana-9.0-bitnami (Chainguard): \< 9.0.8-r5
- chainguard kibana-9.0-iamguarded (Chainguard): \< 9.0.8-r5
- chainguard kibana-9.1 (Chainguard): \< 9.1.9-r1
- chainguard kibana-9.1-iamguarded (Chainguard): \< 9.1.9-r1
- chainguard kibana-9.2 (Chainguard): \< 9.2.3-r1
- chainguard kibana-9.2-iamguarded (Chainguard): \< 9.2.3-r1
- chainguard langfuse-2 (Chainguard): \< 2.95.12-r4
- chainguard langfuse-2-compat (Chainguard): \< 2.95.12-r4
- chainguard langfuse-2-worker (Chainguard): \< 2.95.12-r4
- chainguard langfuse-fips-2 (Chainguard): \< 2.95.12-r4

## References

- <https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-r399-636x-v7f6>
- <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://nvd.nist.gov/vuln/detail/CVE-2025-68665>
- <https://github.com/langchain-ai/langchainjs>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68665.json>

---

Data as of 2026-12-05T13:06:09.849Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
