8.3

CVE-2025-65106: LangChain Vulnerable to Template Injection via Attribute Access in Prompt Templates

Deferred
AliasesGHSA-6qv9-48xg-fc7fPYSEC-2026-1518CGA-2g3h-j5p4-hmq5
Published 21-11-2025Last modified 21-11-2025

Vulnerability summary

CVE-2025-65106 is a high (CVSS 8.3) vulnerability in langchain-ai langchain. EPSS estimates a 0.53% chance of exploitation in the next 30 days, higher than 46.2% of scored vulnerabilities.

Priority
Prioritisesevere

Severe, CVSS 8.3 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)

Source freshness unavailable

How is this decided?
CVSS score
8.3/10
010
High · v4.0 (CVE.org)
EPSS score
0.53%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 0 · Related 1

Timeline

  1. 21-11-2025
    PublishedVulnerability first disclosed.
  2. 21-11-2025
    Last 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

EPSS trend

Probability

0.53%

Chance of exploitation in the next 30 days

Percentile

46%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.52% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

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
PyPI1 product
  • langchain-core< 0.3.80 | ≥ 1.0.0, < 1.0.7

4 vendors · 6 products

References

8 links