3.7

CVE-2026-26013: LangChain affected by SSRF via image_url token counting in ChatOpenAI.get_num_tokens_from_messages

Analyzed
AliasesGHSA-2g6r-c272-w58rPYSEC-2026-2562CGA-8gfw-c59j-7hqh
Published 10-02-2026Last modified 11-02-2026

Vulnerability summary

CVE-2026-26013 is a low (CVSS 3.7) Server-Side Request Forgery vulnerability in langchain-ai langchain. EPSS estimates a 0.42% chance of exploitation in the next 30 days, higher than 38.6% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 3.7, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
3.7/10
010
Low · v3.1 (CVE.org)
EPSS score
0.42%
0%100%
Low · -0.01 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 0 · Related 1

Timeline

  1. 10-02-2026
    PublishedVulnerability first disclosed.
  2. 11-02-2026
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

0.42%

Chance of exploitation in the next 30 days

Percentile

39%

Versus all other CVEs

30-day change

Decrease -0.01 pp

From 0.43% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard6 products
  • open-webui< 0.8.3-r0
  • py3-langchainAll versions (No fix recorded)
  • py3.10-langchainAll versions (No fix recorded)
  • py3.11-langchainAll versions (No fix recorded)
  • py3.12-langchainAll versions (No fix recorded)
Langchain1 product
Langchain-ai1 product
PyPI1 product
  • langchain-core< 1.2.11
Wolfi1 product
  • open-webui< 0.8.3-r0

5 vendors · 10 products

References

8 links