Live threats

All CVEs / langchain-ai

CVE-2025-65106langchain-ai langchain

High 8.3 No auth needed

Priority
65
CVSS 4.0
8.3
EPSS
—
Auth required
No
Published
Nov 21, 2025
Updated
Oct 19, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1336
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS: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

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for langchain.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI langchain-core ≥ 1.0.0 < 1.0.7 1.0.7 pip install "langchain-core>=1.0.7"
PyPI langchain-core < 0.3.80 0.3.80 pip install "langchain-core>=0.3.80"
PyPI langchain-core < 0.3.80 0.3.80 pip install "langchain-core>=0.3.80"
PyPI langchain-core ≥ 1.0.0 < 1.0.7 1.0.7 pip install "langchain-core>=1.0.7"

Per OSV / GitHub Advisories (GHSA-6qv9-48xg-fc7f, PYSEC-2026-1518). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.