langchain-ai langchain up to 0.3.79/1.0.6 Template String special elements used in a template engine
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 7.0 | $0-$5k | 0.00 |
Summary
A vulnerability labeled as critical has been found in langchain-ai langchain up to 0.3.79/1.0.6. This affects an unknown part of the component Template String Handler. Executing a manipulation can lead to improper neutralization of special elements used in a template engine. This vulnerability is registered as CVE-2025-65106. It is possible to launch the attack remotely. No exploit is available. The affected component should be upgraded.
Details
A vulnerability classified as critical was found in langchain-ai langchain up to 0.3.79/1.0.6. This vulnerability affects an unknown part of the component Template String Handler. The manipulation with an unknown input leads to a improper neutralization of special elements used in a template engine vulnerability. The CWE definition for the vulnerability is CWE-1336. The product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine. As an impact it is known to affect confidentiality, integrity, and availability. CVE summarizes:
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.
The advisory is shared for download at github.com. This vulnerability was named CVE-2025-65106 since 11/17/2025. The exploitation appears to be easy. The attack can be initiated remotely. No form of authentication is required for a successful exploitation. There are neither technical details nor an exploit publicly available. The MITRE ATT&CK project declares the attack technique as T1221.
Upgrading to version 0.3.80 or 1.0.7 eliminates this vulnerability. Applying the patch c4b6ba254e1a49ed91f2e268e6484011c540542a is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
VulDB is the best source for vulnerability data and more expert information about this specific topic.
Product
Type
Vendor
Name
Version
- 0.3.0
- 0.3.1
- 0.3.2
- 0.3.3
- 0.3.4
- 0.3.5
- 0.3.6
- 0.3.7
- 0.3.8
- 0.3.9
- 0.3.10
- 0.3.11
- 0.3.12
- 0.3.13
- 0.3.14
- 0.3.15
- 0.3.16
- 0.3.17
- 0.3.18
- 0.3.19
- 0.3.20
- 0.3.21
- 0.3.22
- 0.3.23
- 0.3.24
- 0.3.25
- 0.3.26
- 0.3.27
- 0.3.28
- 0.3.29
- 0.3.30
- 0.3.31
- 0.3.32
- 0.3.33
- 0.3.34
- 0.3.35
- 0.3.36
- 0.3.37
- 0.3.38
- 0.3.39
- 0.3.40
- 0.3.41
- 0.3.42
- 0.3.43
- 0.3.44
- 0.3.45
- 0.3.46
- 0.3.47
- 0.3.48
- 0.3.49
- 0.3.50
- 0.3.51
- 0.3.52
- 0.3.53
- 0.3.54
- 0.3.55
- 0.3.56
- 0.3.57
- 0.3.58
- 0.3.59
- 0.3.60
- 0.3.61
- 0.3.62
- 0.3.63
- 0.3.64
- 0.3.65
- 0.3.66
- 0.3.67
- 0.3.68
- 0.3.69
- 0.3.70
- 0.3.71
- 0.3.72
- 0.3.73
- 0.3.74
- 0.3.75
- 0.3.76
- 0.3.77
- 0.3.78
- 0.3.79
- 1.0.0
- 1.0.1
- 1.0.2
- 1.0.3
- 1.0.4
- 1.0.5
- 1.0.6
License
Website
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔒VulDB Reliability: 🔍
CNA CVSS-B Score: 🔒
CNA CVSS-BT Score: 🔒
CNA Vector: 🔒
CVSSv3
VulDB Meta Base Score: 7.3VulDB Meta Temp Score: 7.0
VulDB Base Score: 7.3
VulDB Temp Score: 7.0
VulDB Vector: 🔒
VulDB Reliability: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploiting
Class: Improper neutralization of special elements used in a template engineCWE: CWE-1336 / CWE-791 / CWE-790
CAPEC: 🔒
ATT&CK: 🔒
Physical: No
Local: No
Remote: Yes
Availability: 🔒
Status: Not defined
EPSS Score: 🔒
EPSS Percentile: 🔒
Price Prediction: 🔍
Current Price Estimation: 🔒
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔒
Upgrade: langchain 0.3.80/1.0.7
Patch: c4b6ba254e1a49ed91f2e268e6484011c540542a
Timeline
11/17/2025 CVE reserved11/22/2025 Advisory disclosed
11/22/2025 VulDB entry created
11/22/2025 VulDB entry last update
Sources
Product: github.comAdvisory: GHSA-6qv9-48xg-fc7f
Status: Confirmed
CVE: CVE-2025-65106 (🔒)
GCVE (CVE): GCVE-0-2025-65106
GCVE (VulDB): GCVE-100-333280
Entry
Created: 11/22/2025 08:27Changes: 11/22/2025 08:27 (70)
Complete: 🔍
Cache ID: 216::103
VulDB is the best source for vulnerability data and more expert information about this specific topic.
No comments yet. Languages: en.
Please log in to comment.