Skip to content
CriticalVulnerabilityLLM-specific

CVE-2025-68664: LangChain serialization injection in dumps and dumpd functions

Identifier
CVE-2025-68664
Published
Record updated
View JSON
Affected
  • langchain-core >= 1.0.0, < 1.2.5, fixed in 1.2.5, released December 22, 2025, 2 days before disclosure
  • langchain-core < 0.3.81, fixed in 0.3.81, released December 22, 2025, 1 day before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
42.9%

Summary

LangChain's dumps() and dumpd() functions do not escape dictionaries containing the 'lc' key when serializing free-form dictionaries. User-controlled data with this key structure is treated as a legitimate LangChain object during deserialization rather than plain data. The issue affects versions prior to 0.3.81 and 1.2.5.

Mitigation

This issue has been patched in versions 0.3.81 and 1.2.5.