{"id":"CVE-2026-26013","state":"PUBLISHED","title":"LangChain affected by SSRF via image_url token counting in ChatOpenAI.get_num_tokens_from_messages","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.","publishedAt":"2026-02-10T21:51:07.741Z","updatedAt":"2026-02-11T21:26:34.029Z","severity":{"score":3.7,"label":"Low","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["langchain-ai langchain"],"affected":[{"vendor":"langchain-ai","product":"langchain","versions":[{"version":"< 1.2.11","status":"affected"}]}],"references":["https://github.com/langchain-ai/langchain/security/advisories/GHSA-2g6r-c272-w58r","https://github.com/langchain-ai/langchain/commit/2b4b1dc29a833d4053deba4c2b77a3848c834565","https://github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D1.2.11"],"weaknesses":["CWE-918"],"ingestedAt":"2026-10-29T20:11:21.040Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/26xxx/CVE-2026-26013.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-26013","state":"PUBLISHED","datePublished":"2026-02-10T21:51:07.741Z","dateUpdated":"2026-02-11T21:26:34.029Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-02-09T21:36:29.554Z"},"containers":{"cna":{"title":"LangChain affected by SSRF via image_url token counting in ChatOpenAI.get_num_tokens_from_messages","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"langchain-ai","product":"langchain","versions":[{"version":"< 1.2.11","status":"affected"}]}],"references":[{"url":"https://github.com/langchain-ai/langchain/security/advisories/GHSA-2g6r-c272-w58r","name":"https://github.com/langchain-ai/langchain/security/advisories/GHSA-2g6r-c272-w58r","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/langchain-ai/langchain/commit/2b4b1dc29a833d4053deba4c2b77a3848c834565","name":"https://github.com/langchain-ai/langchain/commit/2b4b1dc29a833d4053deba4c2b77a3848c834565","tags":["x_refsource_MISC"]},{"url":"https://github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D1.2.11","name":"https://github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D1.2.11","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"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"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-918","lang":"en","description":"CWE-918: Server-Side Request Forgery (SSRF)","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-02-10T21:51:07.741Z"},"source":{"advisory":"GHSA-2g6r-c272-w58r","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-02-11T21:26:20.888102Z","id":"CVE-2026-26013","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-02-11T21:26:34.029Z"}}]}}}