Server-Side Request Forgery Vulnerability in LangChain Framework by LangChain AI
CVE-2026-26013
3.7LOW
What is CVE-2026-26013?
The LangChain framework, designed for building agents and LLM-powered applications, has a vulnerability in the ChatOpenAI.get_num_tokens_from_messages() method. This method inadequately validates image_url inputs, potentially allowing attackers to conduct Server-Side Request Forgery (SSRF) attacks by submitting malicious image URLs. This flaw can compromise the security of applications utilizing this framework. The issue has been addressed in version 1.2.11 of LangChain.
Affected Version(s)
langchain < 1.2.11
