{"cve":"CVE-2025-68664","nvd":{"published":"2025-12-23T23:15:44.933","modified":"2026-10-19T22:10:00.130","status":"Analyzed","description":"LangChain is a framework for building agents and LLM-powered applications. Prior to versions 0.3.81 and 1.2.5, a serialization injection vulnerability exists in LangChain's dumps() and dumpd() functions. The functions do not escape dictionaries with 'lc' keys when serializing free-form dictionaries. 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 versions 0.3.81 and 1.2.5.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","score":8.2},"cwes":["CWE-502"],"references":["https://github.com/langchain-ai/langchain/commit/5ec0fa69de31bbe3d76e4cf9cd65a6accb8466c8","https://github.com/langchain-ai/langchain/commit/d9ec4c5cc78960abd37da79b0250f5642e6f0ce6","https://github.com/langchain-ai/langchain/pull/34455","https://github.com/langchain-ai/langchain/pull/34458","https://github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D0.3.81"],"products":["langchain:langchain_core"],"source":"nvd","synced_at":"2026-10-21T03:43:09.190223697+00:00"},"epss":{"cve":"CVE-2025-68664","score":0.4293,"percentile":0.9871,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-c67j-w6g6-q2cm","url":"https://osv.dev/vulnerability/GHSA-c67j-w6g6-q2cm","summary":"LangChain serialization injection vulnerability enables secret extraction in dumps/loads APIs","modified":"2026-09-10T03:50:31.915283166Z","packages":[{"ecosystem":"PyPI","name":"langchain-core","purl":"pkg:pypi/langchain-core","ranges":[">=1.0.0 <1.2.5"],"fixed":["1.2.5"]},{"ecosystem":"PyPI","name":"langchain-core","purl":"pkg:pypi/langchain-core","ranges":["<0.3.81"],"fixed":["0.3.81"]}]},{"id":"PYSEC-2026-373","url":"https://osv.dev/vulnerability/PYSEC-2026-373","summary":"LangChain serialization injection vulnerability enables secret extraction in dumps/loads APIs","modified":"2026-07-02T13:00:05.018724776Z","packages":[{"ecosystem":"PyPI","name":"langchain-core","purl":"pkg:pypi/langchain-core","ranges":["<0.3.81",">=1.0.0 <1.2.5"],"fixed":["0.3.81","1.2.5"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}