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.
References
| Link | Resource |
|---|---|
| https://github.com/langchain-ai/langchain/commit/2b4b1dc29a833d4053deba4c2b77a3848c834565 | Patch |
| https://github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D1.2.11 | Product Release Notes |
| https://github.com/langchain-ai/langchain/security/advisories/GHSA-2g6r-c272-w58r | Mitigation Vendor Advisory |
Configurations
History
17 Mar 2026, 20:30
| Type | Values Removed | Values Added |
|---|---|---|
| References | () https://github.com/langchain-ai/langchain/commit/2b4b1dc29a833d4053deba4c2b77a3848c834565 - Patch | |
| References | () https://github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D1.2.11 - Product, Release Notes | |
| References | () https://github.com/langchain-ai/langchain/security/advisories/GHSA-2g6r-c272-w58r - Mitigation, Vendor Advisory | |
| Summary |
|
|
| First Time |
Langchain langchain Core
Langchain |
|
| CPE | cpe:2.3:a:langchain:langchain_core:*:*:*:*:*:python:*:* |
10 Feb 2026, 22:17
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-02-10 22:17
Updated : 2026-03-17 20:30
NVD link : CVE-2026-26013
Mitre link : CVE-2026-26013
CVE.ORG link : CVE-2026-26013
JSON object : View
Products Affected
langchain
- langchain_core
CWE
CWE-918
Server-Side Request Forgery (SSRF)
