CVE Explorer
CVE-2026-26013
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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"langchain","vendor":"langchain-ai","versions":[{"status":"affected","version":"< 1.2.11"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:c36c463d59adfabf95aabdf3523cb8fac7149bfca2e9b4a09d95de5a72a570c3 · sha256:de8760b986d54bb8… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":3.7,"baseSeverity":"LOW","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:c36c463d59adfabf95aabdf3523cb8fac7149bfca2e9b4a09d95de5a72a570c3 · sha256:de8760b986d54bb8… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-918","description":"CWE-918: Server-Side Request Forgery (SSRF)","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:c36c463d59adfabf95aabdf3523cb8fac7149bfca2e9b4a09d95de5a72a570c3 · sha256:de8760b986d54bb8… · /containers/cna/problemTypes/0/descriptions/0
Source references
3 source assertions{"name":"https://github.com/langchain-ai/langchain/commit/2b4b1dc29a833d4053deba4c2b77a3848c834565","tags":["x_refsource_MISC"],"url":"https://github.com/langchain-ai/langchain/commit/2b4b1dc29a833d4053deba4c2b77a3848c834565"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:c36c463d59adfabf95aabdf3523cb8fac7149bfca2e9b4a09d95de5a72a570c3 · sha256:de8760b986d54bb8… · /containers/cna/references/1
{"name":"https://github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D1.2.11","tags":["x_refsource_MISC"],"url":"https://github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D1.2.11"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:c36c463d59adfabf95aabdf3523cb8fac7149bfca2e9b4a09d95de5a72a570c3 · sha256:de8760b986d54bb8… · /containers/cna/references/2
{"name":"https://github.com/langchain-ai/langchain/security/advisories/GHSA-2g6r-c272-w58r","tags":["x_refsource_CONFIRM"],"url":"https://github.com/langchain-ai/langchain/security/advisories/GHSA-2g6r-c272-w58r"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:c36c463d59adfabf95aabdf3523cb8fac7149bfca2e9b4a09d95de5a72a570c3 · sha256:de8760b986d54bb8… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.