CVE-2026-26013: langchain-ai langchain Server-Side Request Forgery (SSRF)
Vulnerability summary
CVE-2026-26013 is a low (CVSS 3.7) Server-Side Request Forgery (SSRF) vulnerability in langchain-ai langchain. EPSS estimates a 0.47% chance of exploitation in the next 30 days, higher than 39.4% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 10-02-2026PublishedVulnerability first disclosed.
- 11-02-2026Last 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- OSV · PypiEcosystem advisory · calculated3.7LowCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · WolfiEcosystem advisory · calculated3.7LowCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · ChainguardEcosystem advisory · calculated3.7LowCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
- NVDNIST3.7LowCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS trend
Probability
0.47%
Chance of exploitation in the next 30 days
Percentile
39%
Versus all other CVEs
30-day change
+0.08 pp
From 0.39% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
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_core< 1.2.11
Langchain-ai1 product
- langchain< 1.2.11
PyPI1 product
- langchain-core< 1.2.11
Wolfi1 product
- open-webui< 0.8.3-r0
5 vendors · 10 products
References
8 links- github.com/langchain-ai/langchain/security/advisories/GHSA-2g6r-c272-w58rX Refsource CONFIRMWEBAdvisoryMitigationVendor Advisory
- github.com/langchain-ai/langchain/commit/2b4b1dc29a833d4053deba4c2b77a3848c834565X Refsource MISCWEBFIXPatch
- github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D1.2.11X Refsource MISCWEBProductRelease Notes