CVE-2026-26013
LangChain is a framework for building agents and LLM-powered applications. Prior to 1.2.11, the ChatOpenAI.get_num_tokens_from_messages() method fetches arbitrary image_url values without validation when computing token counts for vision-enabled models. This allows attackers to trigger Server-Side Request Forgery (SSRF) attacks by providing malicious image URLs in user input. This vulnerability is fixed in 1.2.11.
Published:Feb 10, 2026
Last Modified:Apr 18, 2026
EPS:Feb 10, 2026
EPSS Score:0.00018
CVSS Score:3.7
Affected Products
Vendor
Product
Action
Vendor
Langchain
Product
Langchain Core
Langchain
Langchain Core
Vendor
Langchain-ai
Product
Langchain
Langchain-ai
Langchain
Exploits
No exploit reference
Common Weakness Enumeration
Common Attack Pattern Enumeration and Classification (CAPEC)
Related CVEs
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
