Skip to content
MediumVulnerabilityLLM-specific

CVE-2025-65106: LangChain template injection via untrusted template strings

Identifier
CVE-2025-65106
Published
Record updated
View JSON
Affected
  • langchain-core >= 1.0.0, <= 1.0.6, fixed in 1.0.7, released November 19, 2025, 3 days before disclosure
  • langchain-core <= 0.3.79, fixed in 0.3.80, released November 19, 2025, 3 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.5%

Summary

CVE-2025-65106 affects LangChain from versions 0.3.79 and prior and 1.0.0 to 1.0.6. A template injection flaw in its prompt template system lets attackers reach Python object internals through template syntax. The issue affects applications that accept untrusted template strings, not just template variables, in ChatPromptTemplate and related prompt template classes.

Mitigation

This issue has been patched in versions 0.3.80 and 1.0.7.