CVE-2025-65106 in Langchain products
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 app...
Affects 0 products from 2 vendors. Facts below cite their sources.
Affected products and versions
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-65106 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-033664-I |
| Published | 2025-11-21 |
| Last modified | 2026-10-19 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-1336: CWE-1336
Analysis AI-written, not human-reviewed
A template injection vulnerability exists in LangChain's prompt template system, affecting versions 0.3.79 and prior and 1.0.0 to 1.0.6. This vulnerability allows attackers to access Python object internals through template syntax, impacting applications that accept untrusted template strings.
Attackers can exploit this vulnerability by injecting malicious template strings into the prompt template system. This can lead to unauthorized access to Python object internals, potentially allowing for further exploitation.
Questions
What is CVE-2025-65106?
A template injection vulnerability exists in LangChain's prompt template system, affecting versions 0.3.79 and prior and 1.0.0 to 1.0.6. This vulnerability allows attackers to access Python object internals through template syntax, impacting applications that accept untrusted template strings.
Is CVE-2025-65106 actively exploited?
No confirmed active exploitation of CVE-2025-65106 as of 2026-10-25.
How do I remediate CVE-2025-65106?
Priority: HIGH.
What systems are affected by CVE-2025-65106?
CVE-2025-65106 affects Langchain; Python.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Langchain","product":"EDS-518A","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-19.