CVE-2025-65106

CVE-2025-65106 is a high-severity vulnerability with a CVSS 4.0 base score of 8.3. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-1336.

Key facts

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.

Frequently asked questions

What is CVE-2025-65106?
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.
How severe is CVE-2025-65106?
CVE-2025-65106 has a CVSS 4.0 base score of 8.3, rated high severity.
Is CVE-2025-65106 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (37th percentile), an estimate of the probability of exploitation in the next 30 days.
How do I fix CVE-2025-65106?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
Does CVE-2025-65106 have an EU (EUVD) identifier?
Yes. CVE-2025-65106 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2025-198318.
When was CVE-2025-65106 published?
CVE-2025-65106 was published on 2025-11-21 and last updated on 2026-06-17.

References

Other CWE-1336 vulnerabilities

Browse all CWE-1336 vulnerabilities →