pwned.coffeeOrder ticket · past order · 23 Dec 2025
Double espresso · 355°CcriticalOrder up · fix available
LangChain serialization injection vulnerability enables secret extraction in dumps/loads APIs
langchain-core (pip)
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.
Fix it
langchain-core pip
- On 0.x?
pip install --upgrade "langchain-core>=0.3.81,<1" - On 1.x?
pip install --upgrade "langchain-core>=1.2.5"
- First seen
- Last update
- Fixed in
- langchain-core 1.2.5
- langchain-core 0.3.81
- Identifiers
- Source
- GitHub advisory
- On the menu as
Sources
Wrong fix version, or a source we missed? Send it back to chef@pwned.coffee with the source, and we'll correct it here.
Totalone very hot coffee