PT-2026-7475 · Langchain · Langchain

Finder16

·

Published

2026-02-10

·

Updated

2026-02-16

·

CVE-2026-26013

CVSS v3.1

3.7

Low

VectorAV: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.

Exploit

Fix

SSRF

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-26013
GHSA-2G6R-C272-W58R

Affected Products

Langchain