{"id":"CVE-2026-41488","published":"2026-04-24T20:57:25Z","modified":"2026-04-27T13:40:42Z","title":"angchain-openai: Image token counting SSRF protection can be bypassed via DNS rebinding","vendor":"langchain-ai","product":"langchain-openai","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.1,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00248,"percentile":0.09739,"provenance":"source"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"references":[{"url":"https://github.com/langchain-ai/langchain/security/advisories/GHSA-r7w7-9xr2-qq2r","tags":["x_refsource_CONFIRM"]}],"priority":{"score":4.1,"factors":[{"name":"EPSS percentile","points":1.95},{"name":"CVSS severity","points":2.17}]},"vendorSlug":"langchain-ai","affectedVersions":[{"vendor":"langchain-ai","product":"langchain-openai","versions":["< 1.1.14"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-27T13:40:34.758273Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"langchain-openai","vulnerableRanges":["<1.1.14"],"patched":["1.1.14"],"from":["GHSA-r7w7-9xr2-qq2r","PYSEC-2026-76"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-25635","exploited":false,"provenance":"source"}}