Skip to content
LowVulnerabilityLLM-specific

CVE-2026-26013: LangChain SSRF through image URLs in ChatOpenAI token counting

Identifier
CVE-2026-26013
Published
Record updated
View JSON
Affected
  • langchain-core < 1.2.11
Fixed in
1.2.11
  • released February 10, 2026, 1 day before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.4%

Summary

CVE-2026-26013 affects LangChain before 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, so attackers can supply malicious image URLs in user input. This is classified as CWE-918, Server-Side Request Forgery (SSRF); NVD has not yet provided an assessment.

Mitigation

Fixed in 1.2.11