CVE-2026-41488: langchain-ai langchain-openai Server-Side Request Forgery (SSRF)
Vulnerability summary
CVE-2026-41488 is a low (CVSS 3.1) Server-Side Request Forgery (SSRF) vulnerability in langchain-ai langchain-openai. EPSS estimates a 0.24% chance of exploitation in the next 30 days, higher than 14% of scored vulnerabilities.
Timeline
- 24-04-2026PublishedVulnerability first disclosed.
- 27-04-2026Last modifiedVulnerability information updated.
Description
LangChain is a framework for building agents and LLM-powered applications. Prior to 1.1.14, langchain-openai's _url_to_size() helper (used by get_num_tokens_from_messages for image token counting) validated URLs for SSRF protection and then fetched them in a separate network operation with independent DNS resolution. This left a TOCTOU / DNS rebinding window: an attacker-controlled hostname could resolve to a public IP during validation and then to a private/localhost IP during the actual fetch.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · PypiEcosystem advisory · calculated3.1LowCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N
- NVDNIST3.1LowCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N
EPSS trend
Probability
0.24%
Chance of exploitation in the next 30 days
Percentile
14%
Versus all other CVEs
30-day change
+0.08 pp
From 0.16% on 20-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
Langchain1 product
- langchain-openai< 1.1.14
Langchain-ai1 product
- langchain-openai< 1.1.14
PyPI1 product
- langchain-openai< 1.1.14
3 vendors · 3 products
References
4 links- github.com/langchain-ai/langchain/security/advisories/GHSA-r7w7-9xr2-qq2rX Refsource CONFIRMWEBAdvisoryMitigationVendor Advisory