CVE-2025-65106
NoneCVSS
—
EPSS
0.5%
Published
Nov 21, 2025
CISA due date
—
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| PyPI | langchain-core | 0 | 0.3.80 |
| PyPI | langchain-core | 1.0.0 | 1.0.7 |
| Chainguard | open-webui | 0 | 0.6.37-r0 |
| Chainguard | open-webui-compat | 0 | 0.6.37-r0 |
| Wolfi | open-webui | 0 | 0.6.37-r0 |
| Wolfi | open-webui-compat | 0 | 0.6.37-r0 |
| pypi | langchain-core | 1.0.0 | No fix |
Related vulnerabilities
- GHSA-2g6r-c272-w58r LangChain affected by SSRF via image_url token counting in… Also affects langchain-core
- CVE-2026-26013 LangChain is a framework for building agents and LLM-powered applications. Also affects langchain-core
- CVE-2025-68664 LangChain serialization injection vulnerability enables secret extraction in dumps/loads… Also affects langchain-core
- CVE-2026-33699 pypdf is a free and open-source pure-python PDF library. Also affects open-webui
- CVE-2026-4539 A security flaw has been discovered in pygments up to 2.19.2. Also affects open-webui
- CVE-2026-33230 NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and… Also affects open-webui
- CVE-2026-33231 NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and… Also affects open-webui
- CVE-2026-32597 PyJWT is a JSON Web Token implementation in Python. Also affects open-webui