Home / langchain-ai / langchain / CVE-2025-65106
CVE-2025-65106: is it exploited, and which versions of langchain-ai langchain are affected and fixed?
CVE-2025-65106 is a template injection vulnerability in langchain-ai langchain. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 16:39 UTC). Affected: langchain-core from 1.0.0 before 1.0.7 and langchain-core before 0.3.80 (GitHub advisory GHSA-6qv9-48xg-fc7f). Fixed in 1.0.7 and 0.3.80 (GitHub advisory GHSA-6qv9-48xg-fc7f). Severity: High (8.3, CVSS 4.0, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:39 UTC, CVE record November 19, 2026, 07:09 UTC and NVD November 19, 2026, 07:15 UTC.
What is CVE-2025-65106?
LangChain Vulnerable to Template Injection via Attribute Access in Prompt Templates
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.
From the CVE record by GitHub_M, last updated November 21, 2025, 21:53 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| langchain-ai | langchain | >= 1.0.0, < 1.0.7 < 0.3.80 |
As the CVE record by GitHub_M states it, last updated November 21, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | langchain-core | >= 1.0.0, < 1.0.7 | 1.0.7 | GHSA-6qv9-48xg-fc7f |
| PyPI | langchain-core | < 0.3.80 | 0.3.80 | GHSA-6qv9-48xg-fc7f |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated December 9, 2025. Summary: LangChain Vulnerable to Template Injection via Attribute Access in Prompt Templates.
How severe is CVE-2025-65106?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.3 | CVSS 4.0 | 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 | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2025-65106 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, November 21, 2025)
- EPSS
- 0.53% probability of exploitation activity in the next 30 days, percentile 46.2 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-1336 Improper Neutralization of Special Elements Used in a Template Engine
Where are the vendor advisories and references?
- https://github.com/langchain-ai/langchain/security/advisories/GHSA-6qv9-48xg-fc7f x_refsource_CONFIRM
- https://github.com/langchain-ai/langchain/commit/c4b6ba254e1a49ed91f2e268e6484011c540542a x_refsource_MISC
- https://github.com/langchain-ai/langchain/commit/fa7789d6c21222b85211755d822ef698d3b34e00 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- November 17, 2025
- Published
- November 21, 2025, 21:43 UTC
- CVE record updated
- November 21, 2025, 21:53 UTC by GitHub_M
- NVD
- Deferred, last modified October 19, 2026, 13:10 UTC
- Last checked
- CVE list November 19, 2026, 07:09 UTC; NVD November 19, 2026, 07:15 UTC; KEV December 3, 2026, 16:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect langchain?
- Jun 22, 2026CVE-2026-55443 langchain-ai langchain: path traversal (reading or writing files outside the intended folder)
- May 26, 2026CVE-2026-44843 langchain-ai langchain: deserialization of untrusted data
- Apr 9, 2026CVE-2026-40087 langchain-ai langchain: template injection
- Mar 31, 2026CVE-2026-34070 langchain-ai langchain: path traversal (reading or writing files outside the intended folder)
- Feb 10, 2026CVE-2026-26013 langchain-ai langchain: server-side request forgery (SSRF)
- Jan 12, 2026CVE-2024-58340 LangChain AI LangChain: regular expression denial of service (ReDoS)
- Dec 23, 2025CVE-2025-68664 langchain-ai langchain: deserialization of untrusted data
Questions about CVE-2025-65106
Is CVE-2025-65106 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:39 UTC. FIRST's EPSS gives it a 0.53% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of langchain-ai langchain are affected by CVE-2025-65106?
langchain-core from 1.0.0 before 1.0.7 and langchain-core before 0.3.80, per the GitHub advisory GHSA-6qv9-48xg-fc7f. The tables above give every range the sources list.
Which version fixes CVE-2025-65106?
1.0.7 and 0.3.80, per the GitHub advisory GHSA-6qv9-48xg-fc7f. Check the vendor's advisory before you rely on it.
How severe is CVE-2025-65106?
High (8.3, CVSS 4.0, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2025-65106?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.