PT-2026-7475

CVE-2026-26013

·

Published

2026-02-10

·

Updated

2026-07-13

Description by

CVSS 3.1
3.7
Low
MetricsAV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
Name of the Vulnerable Software and Affected Versions LangChain versions prior to 1.2.11
Description LangChain is a framework used for building applications powered by large language models (LLMs). A flaw exists in the ChatOpenAI.get num tokens from messages() method where it retrieves image URLs without proper validation when calculating token counts for models with vision capabilities. This can be exploited to initiate Server-Side Request Forgery (SSRF) attacks. Attackers can achieve this by supplying malicious image URLs as part of user-provided input. The vulnerable function is ChatOpenAI.get num tokens from messages(). The vulnerable parameter is image url.
Recommendations Update to LangChain version 1.2.11 or later.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-2G6R-C272-W58R
ECHO-DBFC-D3FF-9463
PYSEC-2026-2562
Found an issue in the description? Have something to add? Feel free to write us 👾