CVE-2025-65106: langchain-ai langchain
Vulnerability summary
CVE-2025-65106 is a high (CVSS 8.3) vulnerability in langchain-ai langchain. EPSS estimates a 0.51% chance of exploitation in the next 30 days, higher than 41.8% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 21-11-2025PublishedVulnerability first disclosed.
- 21-11-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · PypiEcosystem advisory · calculated8.3HighCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
- OSV · WolfiEcosystem advisory · calculated8.3HighCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
- OSV · ChainguardEcosystem advisory · calculated8.3HighCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
- NVDNIST8.3HighCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS trend
Probability
0.51%
Chance of exploitation in the next 30 days
Percentile
42%
Versus all other CVEs
30-day change
0.00 pp
From 0.51% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Chainguard2 products
- open-webui< 0.6.37-r0
- open-webui-compat< 0.6.37-r0
Wolfi2 products
- open-webui< 0.6.37-r0
- open-webui-compat< 0.6.37-r0
Langchain-ai1 product
- langchain≥ 1.0.0, < 1.0.7 | < 0.3.80
PyPI1 product
- langchain-core< 0.3.80 | ≥ 1.0.0, < 1.0.7
4 vendors · 6 products
References
8 links- github.com/langchain-ai/langchain/security/advisories/GHSA-6qv9-48xg-fc7fX Refsource CONFIRMWEBAdvisory
- github.com/langchain-ai/langchain/commit/c4b6ba254e1a49ed91f2e268e6484011c540542aX Refsource MISCWEBFIX
- github.com/langchain-ai/langchain/commit/fa7789d6c21222b85211755d822ef698d3b34e00X Refsource MISCWEBFIX