CVE-2026-26013CWE-918

LangChain affected by SSRF via image_url token counting in ChatOpenAI.get_num_tokens_from_messages

Low · published February 10, 2026

CVSS v3.1
3.7
EPSS
0%
Percentile
39.8
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
3.7 · LOW
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
CVSS v4.0
Not supplied
EPSS
0.00472 · 39.8th percentile
Weakness
CWE-918 · Server-Side Request Forgery (SSRF)
Published
2026-02-10T21:51Z
EPSS history
Timeline
  • 10 FEB 21:51Z
    LangChain affected by SSRF via image_url token counting in ChatOpenAI.get_num_tokens_from_messages
    cvelistv5