CVE Catalog

CVE-2025-65106

HighCVSS 8.3
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.51%

42th percentile - higher than 42% of all known CVEs

Summary

LangChain versions 0.3.79 and prior and 1.0.0 to 1.0.6 contain a template injection vulnerability in the prompt template system. Attackers can access Python object internals through template syntax, affecting applications that accept untrusted template strings in ChatPromptTemplate and related classes.

Risk Assessment

Applications accepting untrusted template strings may allow attackers to access Python internals, potentially leading to data disclosure or further escalation.

Recommendation

Update LangChain to version 0.3.80 or 1.0.7. Do not pass untrusted template strings to ChatPromptTemplate and related classes.

Other vulnerabilities in LangChain

See all
Original NVD description (English source)

LangChain is a framework for building agents and LLM-powered applications. From versions 0.3.79 and prior and 1.0.0 to 1.0.6, a template injection vulnerability exists in LangChain's prompt template system that allows attackers to access Python object internals through template syntax. This vulnerability affects applications that accept untrusted template strings (not just template variables) in ChatPromptTemplate and related prompt template classes. This issue has been patched in versions 0.3.80 and 1.0.7.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS